CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/tenant-onboarding-test-author

Use when a tenant onboarding or offboarding flow is added or changed, or before a compliance review: tests for account creation, isolation from the first API call, default quotas, billing links, seed data, idempotent re-provisioning and full deletion on teardown.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

provisioning-surface-map.mdreferences/

Provisioning pipeline surface map

Walk the onboarding code path end-to-end and enumerate every surface that changes state during provisioning or deprovisioning. Per the AWS Well-Architected SaaS Lens (docs.aws.amazon.com/wellarchitected/latest/saas-lens/tenant-isolation.html), isolation must be established at every layer of the stack independently:

SurfaceWhat to captureHow to find it
Tenant registry / catalogRecord created, unique key assignedCentral tenants table or tenant-management service
Identity storeUser account created, role bindingsAuth provider admin API or IAM config
Database layerSchema/row/database provisioned per isolation modelORM migration runner, schema-per-tenant scripts
Object storageBucket or prefix created with scoped policyIaC for storage resources
Quota / rate-limit tableDefault quotas inserted for the new tenantQuota service or DB seeding script
Billing recordBilling entry linked to tenant IDBilling service or payment-provider webhook handler
Seed / default dataFeature flags, default roles, template data loadedSeed scripts, fixture loaders
Re-provisioning pathIdempotent re-run: no duplicate records, no failed constraintsProvisioning entry point called twice
Offboarding / teardownData deletion, billing cancellation, quota cleanupDelete or deactivate endpoint

Per the Microsoft Multitenant Architecture Center (learn.microsoft.com/en-us/azure/architecture/guide/multitenant/considerations/tenant-life-cycle), onboarding must account for data residency, compliance tier, billing model, and disaster-recovery SLOs, each of which can gate provisioning steps. Capture which conditions gate each surface - a compliance-gated provisioning step needs its own test branch.

Per the Microsoft resource organisation guidance (learn.microsoft.com/en-us/azure/architecture/guide/multitenant/approaches/resource-organization), quota and subscription limits must be modelled per tenant at provisioning time. Record the expected default quota values - they are assertions, not implementation details.

SKILL.md

tile.json