mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-30 09:32:45 +01:00
1.5 KiB
1.5 KiB
Scenario: Pro Trial Signup
Goal
Prove the self-hosted Pulse instance initiates the hosted trial flow correctly, does not mint local entitlement before activation, and enforces the hosted-signup retry-burst contract for duplicate initiation attempts.
Environment
- Base URL:
{{base_url}} - Username:
{{username}} - Password:
{{password}}
Required checks
- Verify pre-trial entitlements show
trial_eligible=true. - Start trial via
POST /api/license/trial/start. - If the first response is HTTP
409, confirm codetrial_signup_requiredand a hostedaction_urlthat targets/start-pro-trial. - If the first response is HTTP
429, confirm codetrial_rate_limitedand thatRetry-Aftermatchesdetails.retry_after_seconds. - Verify post-initiation entitlements remain unactivated locally (
trial_eligible=true,subscription_state=expired). - Retry
POST /api/license/trial/startimmediately:- If the first response was
409, accept either another409 trial_signup_requiredwhile the retry burst is still open or429 trial_rate_limitedonce the limiter engages. - If the first response was already
429, confirm the retry remains429 trial_rate_limitedwith matching backoff metadata.
- If the first response was
Output contract
Write JSON to {{result_json}} with this shape:
{
"status": "pass",
"summary": "short outcome summary",
"evidence": ["bullet point 1", "bullet point 2"],
"issues": []
}
Use "status": "fail" when any required check fails.