Repository navigation
test(cloudxr): real-browser OOB integration tests with fake adb and MockCloudXR - #1338
Closed
gareth-morgan-nv wants to merge 1 commit into
Closed
gareth-morgan-nv wants to merge 1 commit into
gareth-morgan-nv wants to merge 1 commit into
Conversation
…d a real browser Real build_teleop_url -> run_oob_connect -> FakeAdb am start -> Chrome opens the exact recorded URL -> the real web client (MockCloudXR build) registers with the real wss.run + OOBControlHub. Covers a generated and an awkward configured token, URL cleanup, no token in request targets or Referer, reload with a new registration and no second am start, and rejection of a wrong fragment token. Browser cases are opt-in (RUN_OOB_BROWSER_TESTS=1, -m oob_browser); a fast /bin/sh test checks the -d argument survives shell quoting. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Gareth Morgan <gmorgan@nvidia.com>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Contributor
Author
|
🤖 Agent-generated (Claude Code · claude-sonnet-5-5) Closing: these tests are combined into #1148, which now holds the whole real-browser OOB test suite. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Real-browser integration tests for the OOB teleop path: the merged fake-adb test double plays the headset's
adb, real Chrome opens the exact URL thatam startreceives, the real web client (MockCloudXR build) runs in it, and the realwss.run+OOBControlHubserve it. The first cases cover fragment token delivery from #1318; the harness is meant to host further end-to-end OOB cases. Based on #1318; the diff here is the new test only.What changed
tests/python/core/cloudxr/test_oob_token_integration.py:/bin/shtest that the-dURL survives shell quoting with a token containing&,?,#,+, a space and quotes. Always runs.Refererseen by the static server contains the token.RUN_OOB_BROWSER_TESTS=1(-m oob_browser); nothing runs them automatically. Chrome here ignores TLS errors, so certificate trust is bypassed, not covered.cryptographyand theoob_browsermarker in the leafpyproject.toml.Validation
RUN_OOB_BROWSER_TESTS=1 uv run --extra dev pytest test_oob_token_integration.pyintests/python/core/cloudxr: 4 passed locally.sessionStoragepersistence, token also in the URL query, hub accepting any token, URL not shell-quoted.SKIP=check-copyright-year pre-commit run --all-filesclean.Known limitations / follow-ups
Test plan
🤖 Generated with Claude Code