Skip to content

test: e2e for SSE live delivery, isolation and purge - #44

Merged
TheGreatAxios merged 2 commits into
cl-9270-mailbox-delete-schema-ddl-parity-and-schema-check-testsfrom
cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe
Sep 27, 2026
Merged

TheGreatAxios merged 2 commits into
cl-9270-mailbox-delete-schema-ddl-parity-and-schema-check-testsfrom
cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Stacked on test: fold duplicate schema and SSE suites #43.
  • tests/sse.test.ts: a client on the events route receives a newly written message, and after it disconnects the bus has no subscriber left.
  • tests/isolation-and-purge.test.ts: a principal in another tenant gets an empty list and 404s on tenant A's message, while the owner gets 200. Purging a principal empties their inbox.
  • The harness takes the tenant from a request header and the bus from the caller.

Verification

CI is green on this branch: install --frozen-lockfile, build, typecheck, tests against Postgres, and the Node consumer smoke test.

Closes CL-9274
Closes CL-9275

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: an independent review pass covered this branch, and every finding is fixed. Build, typecheck and tests pass against real Postgres.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe branch from f038021 to 930e29d Compare September 25, 2026 15:02
@TheGreatAxios
TheGreatAxios force-pushed the cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe branch from 930e29d to 018064d Compare September 25, 2026 17:52
@TheGreatAxios
TheGreatAxios force-pushed the cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe branch from 018064d to acdb910 Compare September 26, 2026 01:28
@TheGreatAxios
TheGreatAxios force-pushed the cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe branch from acdb910 to 5726407 Compare September 26, 2026 01:36
@TheGreatAxios
TheGreatAxios added this pull request to stack #47 September 26, 2026 01:58
A client on the events route receives a newly written message, and
disconnecting leaves the bus with no subscriber. The harness now takes
the tenant from the request too, and the bus from the caller.

Closes CL-9274.
A principal in another tenant sees an empty inbox and 404s on tenant A's
message, and a purged principal's inbox lists empty.

Closes CL-9275.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9274-mailbox-add-e2e-test-for-sse-live-delivery-and-unsubscribe branch from 5726407 to 9adc74d Compare September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios removed this pull request from stack #47 September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios added this pull request to stack #50 September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios merged commit 72b9164 into main Sep 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant