Repository navigation
[Fusion] Add the subscription authorization transport tests - #52
Open
michaelstaib wants to merge 9 commits into
Open
michaelstaib wants to merge 9 commits into
michaelstaib wants to merge 9 commits into
Conversation
… SSE fault abort test
…t in the SSE subscription tests
…scription refusal snapshots
michaelstaib
force-pushed
the
mst/auth-subscription-lifetime
branch
from
October 12, 2026 21:26
f8d379a to
a703df4
Compare
michaelstaib
force-pushed
the
mst/auth-subscription-transport-tests
branch
from
October 12, 2026 21:26
952f443 to
b903d1c
Compare
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.
Ticket: hc-fork-2-fmr.2 (Subscription authorization transport tests)
Stacked on #51. This PR's diff is against
mst/auth-subscription-lifetime. It has 9 commits and changes tests only, all underFusion.AspNetCore.Tests.It pins the subscription authorization of #51 over a real HTTP and WebSocket pipeline. Event sequences are snapshotted per element with
MatchInlineSnapshots. Refusals are snapshotted with Markdown snapshots.Server-sent events (
SubscriptionAuthorizationSseTests)WWW-Authenticate: Bearer.nullplus an error on every event. A non-null field denial streamsdata: nullplus an error.completealone.complete. The response ends normally.WebSocket (
SubscriptionAuthorizationWebSocketTests)connection_initis answered according to a socket session interceptor (4401, 4403 or ack).Verified at 11242c2 (same tree as this head):
dotnet build src/All.slnx: 0 errors.Not verified:
Open points:
..._EndWithAnErrorEventThenComplete_..., but SSE has no error event here: the error arrives as anextevent that carries only errors. A rename toErrorResultis a one-line follow-up.