[ZEPPELIN-6666] Add notebook transport fixtures - #5458
Open
voidmatcha wants to merge 1 commit into
Open
Conversation
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.
What is this PR for?
Adds a versioned Notebook REST/WebSocket transport-fixture foundation for the Shared Notebook Core migration.
A fixture is a boundary contract, not a UI mock: it records observable REST request/response shapes, WebSocket frames, and their ordering. The strict replay adapter then fails on unexpected, reordered, or unconsumed traffic, preventing Angular and future React adapters from silently drifting.
Captured fixtures require a scenario, owner, covered operations, and known exclusions. Sensitive values are redacted before a fixture is written. Binary WebSocket capture is rejected until a redaction policy exists.
The fixture-only suite and the live-capture suite are separate. The live suite runs against an isolated, authenticated Zeppelin instance and captures traffic from a real notebook page.
This follows the contract-suite direction used by Apache Hadoop:
What type of PR is it?
Improvement
What is the Jira issue?
ZEPPELIN-6666
How should this be tested?
npm run check:core-contract-fixtures— 32 passedCI=true npm run e2e:core-contract— 40 passedCI=true PLAYWRIGHT_BASE_URL=http://127.0.0.1:18080 npm run e2e:core-contract:live -- --project=chromium --retries=0— 1 live capture passed against an isolated authenticated Zeppelin serverScreenshots (if appropriate)
N/A
Questions:
e2e/core-contract/README.md