Skip to content

RBAC testing #579

@stanislav-tkach

Description

@stanislav-tkach

Description

Write comprehensive automated tests for the RBAC functionality, by covering RegistrationChain structure.

Test scenarios

  • ❌ It isn't allowed to use same Catalyst ID (role 0 certificate subject public key) in multiple registration chains. Only the first chain would be valid.
  • ❌ It isn't allowed to update a chain with a stake address that is already used by another valid chain.
  • ❌ It isn't allowed to start a new chain with a stake address that is already used by another valid chain if this new chain uses the same role 0 public key as the latest role 0 signing public key in the previous chain.
  • ✅ It is allowed to start a new chain with a stake address that is used by another, another RBAC chain should be properly updated as well.
  • ❌ It isn't allowed to use same signing keys in multiple different chains.
  • ✅ Signing keys can be reused multiple times in the same chain.
  • ✅ After another RBAC chain deleted stake addresses, any other chains could start reuse it back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    squad: gatekeepersCatalyst App Backend, System Development & Integration Team

    Type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions