test(contracts): add authorization coverage for registry mutations #467 - #483
Open
stevengrams wants to merge 1 commit into
Open
test(contracts): add authorization coverage for registry mutations #467#483stevengrams wants to merge 1 commit into
stevengrams wants to merge 1 commit into
Conversation
Closes enliven17#467 Adds explicit authorization test coverage for every public state-changing registry operation on TalosRegistry. Restores pause-control dependency and fixes soroban-sdk test harnesses.
|
@stevengrams is attempting to deploy a commit to the Cankat's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Overview
This PR adds explicit authorization test coverage for every public state-changing registry operation on
TalosRegistry, verifying that caller boundaries (admin, creator, patron, unauthorized) are strictly enforced and that rejected calls do not mutate storage or emit misleading events.Related Issue
Closes #467
Changes
🧪 Test Coverage & Authorization Boundary Verification
auth_create_talos_unauthorized_fails_and_leaves_storage_and_events_unchangedNextTalosIdis not incremented, no record is stored, and no events are emitted.auth_update_patron_unauthorized_fails_and_preserves_state_and_eventsauth_update_kernel_unauthorized_fails_and_preserves_stateauth_update_pulse_unauthorized_fails_and_preserves_stateauth_deactivate_talos_unauthorized_fails_and_remains_activeauth_governance_and_timelock_unauthorized_mutations_failset_timelock_config), action scheduling (schedule_action), action cancellation (cancel_action), and batch touch maintenance (touch_batch).pause-controldependency intalos_registry/Cargo.toml.pause_controlandstorage_migrationtest harnesses to use registered contracts per soroban-sdk requirements.Verification Results
create_talos,update_patron,update_kernel,update_pulse,deactivate_talos,set_timelock_config,schedule_action,cancel_action,touch_batchrequire_auth& verified withtry_*main; all pause controls, compatibility, and contract behavior intact