Skip to content

Test: Add missing test coverage for access-lease and subscription - #141

Merged
Busiii-adetiba merged 2 commits into
SynapsVault:mainfrom
Izebby:main
Oct 17, 2026
Merged

Busiii-adetiba merged 2 commits into
SynapsVault:mainfrom
Izebby:main

Conversation

@Izebby

@Izebby Izebby commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

This PR addresses missing test coverage across the access-lease and subscription contracts:

  • Non-admin set_admin tests: Added tests to both access-lease and subscription verifying that set_admin properly rejects unauthorized callers.
  • Subscription upgrade tests: Added tests validating upgrade success, rejection by non-admins, and failure before initialization.
  • Comprehensive event validation: Expanded events_have_documented_shape in the subscription contract to validate the payload structure of all event types (setadmin, plan, subscribe, renew, cancel, setactive).

Closes #60
Closes #57
Closes #58
Closes #56

@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@Izebby Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Busiii-adetiba
Busiii-adetiba merged commit eee2a5d into SynapsVault:main Oct 17, 2026
Busiii-adetiba pushed a commit that referenced this pull request Oct 17, 2026
)

The init front-running fix for access-lease (#43, review item 11) was
recorded as SV-12 "Resolved", but the admin.require_auth() check and its
test were dropped when PR #141 was merged, and subscription and
vault-registry never had it. Mark SV-12 as open/regressed across all three
contracts, correct the status line and access-control matrix, and add the
init front-running residual risk with operational mitigations until the
check is restored.

Closes #104

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants