PlatformAdmin tenant-management smoke test¶
Use this checklist after a production deployment that changes authentication, RBAC, tenant APIs, frontend routing, or the PlatformAdmin dashboard.
Preconditions¶
- Use the production
PlatformAdminaccount through the normal login flow. - Confirm the environment is healthy before changing tenant data.
- Create a disposable tenant only when it is safe to do so. Do not delete a real tenant to perform this check.
Verification¶
- Sign in as
PlatformAdmin. - Confirm the dashboard shows Tenant Administration and the navigation contains Tenants.
- Open Tenants and verify the tenant list loads without an authorization or routing error.
- When safe, create a disposable tenant with an unmistakable test ID/name and verify it appears in the list and dashboard summary.
- Open the disposable tenant and edit its name or lifecycle fields. Save and verify the updated values are shown after refresh.
- Delete the disposable tenant, confirm the destructive action when prompted, and verify it disappears from the list.
- If deletion fails, verify the UI displays the backend failure instead of silently removing the tenant from the page.
- Sign out when verification is complete.
Permission regression checks¶
When test accounts with restricted permissions are available:
- A user with
TENANT_READbut notTENANT_WRITEshould be able to view tenant data but should not see create/edit/delete controls. - A user without
TENANT_READshould not see the Tenants navigation item and direct tenant API requests should be denied.
Expected API authorization¶
The tenant API requires:
TENANT_READforGET /tenantsandGET /tenants/{id};TENANT_WRITEforPOST /tenants,PUT /tenants/{id}, andDELETE /tenants/{id}.
Do not lower backend JaCoCo or frontend coverage thresholds to make tenant-management changes pass CI. Add focused regression tests instead.