console: the closed-door walk counts the legacy-routes door (final fix F0)
Plan 8 Task 5 registered POST /api/cli/system/legacy-routes as a closed door; TestEveryClosedDoorRefusesAServiceCredential still wanted 48 doors and eight system doors. It walks 49, nine of them system doors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+2
−2
internal/console/svcroutes_test.go+2 −2
diff --git a/internal/console/svcroutes_test.go b/internal/console/svcroutes_test.go| index e4ab9d6c4..05c3c5fd4 100644 |
| --- a/internal/console/svcroutes_test.go |
| +++ b/internal/console/svcroutes_test.go |
| @@ -921,8 +921,8 @@ func TestEveryClosedDoorRefusesAServiceCredential(t *testing.T) { |
| } |
| seen++ |
| } |
| - if seen != len(closedDoors) || seen != 48 { |
| - t.Errorf("walked %d closed doors, want all %d (and 48 today: instance-token, three door-key doors, the routes door, instances-manifest, sidecars-manifest, the route-channel move, two db replica doors, six fleets, four services, two email credentials, email pause, the build probe, the live tenancy read, the layout read, eight system doors, two deployment-wide antivirus, three platform geoip doors, four store-entitlement doors, and the five run doors)", |
| + if seen != len(closedDoors) || seen != 49 { |
| + t.Errorf("walked %d closed doors, want all %d (and 49 today: instance-token, three door-key doors, the routes door, instances-manifest, sidecars-manifest, the route-channel move, two db replica doors, six fleets, four services, two email credentials, email pause, the build probe, the live tenancy read, the layout read, nine system doors, two deployment-wide antivirus, three platform geoip doors, four store-entitlement doors, and the five run doors)", |
| seen, len(closedDoors)) |
| } |
| } |