Skip to content

Add property-based tests for access-control consent permission scenarios #405

@Emeka000

Description

@Emeka000

Summary

The access-control contract has 835 lines of hand-written tests but permission logic is complex enough to warrant property-based testing. proptest is already a dev dependency.

Properties to Test

  • Soundness: a provider without explicit grant never has access
  • Completeness: after a grant, the provider always has access until revocation
  • Revocation: after revoke, access is always denied regardless of prior grants
  • Expiry: after consent expiry timestamp, access is always denied
  • Scope isolation: a grant for scope A never gives access to scope B

Acceptance Criteria

  • At least 5 property-based tests covering the above invariants
  • Each property runs 1,000+ cases with arbitrary addresses, scopes, and timestamps

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programtestingMissing or insufficient test coverage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions