carlos / platform Public

console: perf walk targets for the buy pages

Co-Authored-By: Astra (gpt-6-astra) via Codex <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 844dbccae73447c9e392c1bad149d73d0b20d9ae parent 17e092e
1 file changed, +6 −0
  • internal/console/perfwalk_test.go +6 −0

CI failed — run details

diff --git a/internal/console/perfwalk_test.go b/internal/console/perfwalk_test.go
index b21f5b291..3b88a02ae 100644
--- a/internal/console/perfwalk_test.go
+++ b/internal/console/perfwalk_test.go
@@ -517,6 +517,12 @@ func perfTargets(fx *consoleFixture) map[string][]perfTarget {
}
// GET /upgrade has no parameter but is gated the same way (billingpage.go).
m["GET /upgrade"] = []perfTarget{{Path: "/upgrade", Expect: http.StatusNotFound}}
+ // The walk also leaves domain buying unconfigured. All three pages
+ // answer domainBuyBrowserGate's 404 before any purchase or provider read.
+ for _, p := range []string{"buy", "purchases/{id}", "purchases/{id}/status"} {
+ m["GET /a/{sqid}/apps/{app}/domains/"+p] = []perfTarget{{
+ Path: app + "/domains/" + strings.ReplaceAll(p, "{id}", "dp_0000000000000001"), Expect: http.StatusNotFound}}
+ }
for _, tab := range []string{"account-review", "activity", "analytics", "availability", "errors",
"instances", "logs", "logs/data", "protection", "protection/data", "settings"} {
m["GET /a/{sqid}/apps/{app}/"+tab] = ok(app + "/" + tab)