Skip to main content

Role Hierarchy — Test Cases

Feature version: v1.0
Reference doc: System Overview
Result notation: ✅ Pass | ❌ Fail | ⏭ Skip | 🐛 Fail + bug report


Changelog

DateVersionChangeAuthor
2026-05-10v1.0Initial creation

TC-ARCH-001 — Account creation hierarchy 🆕 NEW

Precondition: Admin account exists. Each tier must be created before testing the tier below it.

#DescriptionStepsExpected ResultActual Result
1Admin creates a Super AgentLog in to Admin panel → Create a Super Agent accountSuper Agent account created successfully
2Super Agent creates an AgentLog in to Super Agent portal → Create an Agent accountAgent account created successfully
3Agent creates a ShopLog in to Agent portal → Create a Shop accountShop account created successfully
4Shop creates a PlayerLog in to Shop portal → Create a Player accountPlayer account created successfully
5Shop cannot create an AgentLog in to Shop portal → Attempt to create an AgentSystem rejects the request with a permission error
6Agent cannot create a Super AgentLog in to Agent portal → Attempt to create a Super AgentSystem rejects the request with a permission error

TC-ARCH-002 — Session isolation by role 🆕 NEW

Precondition: Valid auth tokens are available for each role.

#DescriptionStepsExpected ResultActual Result
1Shop session cannot access Agent-level APIsUse a Shop token to call an Agent-only API endpointHTTP 403 or 401
2Player session cannot access Admin APIsUse a Player token to call /api/admin/*HTTP 403 or 401