console: the claim probe reads the payments door's new object
Follow-up to finding E (782b196b): the payments door answers an object, so the claim invariant's read probe for GET /api/cli/billing/payments looks for "available" and "test_mode" instead of a bare list. TestClaimConsoleMutationInvariant passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−1
internal/console/claim_invariant_probes_read_test.go+1 −1
CI failed — run details
diff --git a/internal/console/claim_invariant_probes_read_test.go b/internal/console/claim_invariant_probes_read_test.go| index 0755683c1..b959bc46d 100644 |
| --- a/internal/console/claim_invariant_probes_read_test.go |
| +++ b/internal/console/claim_invariant_probes_read_test.go |
| @@ -358,7 +358,7 @@ var claimReadProbes = map[string]claimProbe{ |
| "/api/cli/accounts/bab/plan", `"plan":"free"`), |
| "route GET /api/cli/billing/problems": claimAPIRead(claimBillingProblemWorld, "/api/cli/billing/problems", `"reason":"unrecognised"`), |
| "route GET /api/cli/billing/revenue": claimAPIRead(claimBillingWorld, "/api/cli/billing/revenue", `"accounts":`, `"arr":`), |
| - "route GET /api/cli/billing/payments": claimAPIRead(claimBillingWorld, "/api/cli/billing/payments", `[]`), |
| + "route GET /api/cli/billing/payments": claimAPIRead(claimBillingWorld, "/api/cli/billing/payments", `"available":`, `"test_mode":`), |
| "route GET /api/cli/fleets/{account}/{fleet}": claimAPIRead(claimWorldFleet, "/api/cli/fleets/bab/pi", `"name":"pi"`), |
| "route GET /api/cli/system/managed-fleets": claimAPIRead(nil, "/api/cli/system/managed-fleets", `"enabled":false`), |
| "route GET /api/cli/system/antivirus": claimAPIRead(nil, "/api/cli/system/antivirus", `"wired":true`), |