Skip to content

Add Aegis role permission tests #164

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Test

Summary

Add role permission tests across admin, issuer, compliance, and investor operations.

Current Behaviour

Privileged operations may not be fully tested for wrong caller or wrong role failures.

Expected Behaviour

The test suite should verify that each protected function rejects unauthorised callers and preserves state.

Suggested Implementation

Create role matrix tests, wrong-caller tests, state consistency assertions, and docs.

Files or Areas Likely Affected

  • src/
  • tests/
  • docs/

Acceptance Criteria

  • Role permission test matrix is added.
  • Admin-only operations are tested.
  • Issuer-only operations are tested where applicable.
  • Compliance operations are tested.
  • Wrong-role calls preserve state.
  • Docs explain role assumptions.

Additional Notes

This is security-critical.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labeladminAdmin and privileged operationsaegisAegis RWA Protocol related workexpertExpert difficultyrwa-contractsRWA smart contract worksecuritySecurity sensitive worktestTesting work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions