Skip to content

test(vault): pin the event supersede publishes - #528

Merged
LKSNDRTMLKV merged 2 commits into
mainfrom
test/supersede-event
Oct 28, 2026
Merged

LKSNDRTMLKV merged 2 commits into
mainfrom
test/supersede-event

Conversation

@LKSNDRTMLKV

Copy link
Copy Markdown
Member

Summary

supersede publishes dpp.passport.superseded, the same event and payload as amend: both routes end in supersede_predecessor, which publishes it. Nothing tested that, and the docs rewrite had come to say the opposite (corrected on #515 and odal-node/dpp-web#38). This adds the test. No code change was needed.

Related issue

None filed.

Changes

  • crates/dpp-vault/tests/continuity_snapshot.rs: a RecordingEventBus, and supersede_publishes_the_superseded_event, which publishes a passport and a successor declaring supersedesId, supersedes, and asserts one dpp.passport.superseded event with passportId, successorId and status, plus the snapshot reconcile. The harness already drives the real PassportService with in-memory ports, so this runs in just test without Docker.

Checklist

@LKSNDRTMLKV
LKSNDRTMLKV merged commit cbae1ca into main Oct 28, 2026
24 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