| new file mode 100644 |
| index 000000000..c57d6df1a |
| --- /dev/null |
| +++ b/internal/provision/plans4d_census_test.go |
| @@ -0,0 +1,33 @@ |
| +package provision |
| + |
| +// Record-write census entries for plans 4d-1 (plans-4d-lapse), layered on |
| +// edgeAssetCache1WriteCensusInventory (main's newest at the branch point). |
| +// No record writer is added: the lapse writes only console SQL and the |
| +// account's limits record through plans.PutLimits, which is not a |
| +// provision record. |
| +// - NewServer registers the keep page's two routes (GET and POST |
| +// /a/{sqid}/plan/keep); its one "instances" literal is the existing |
| +// logs/data route pattern, unchanged. Re-digested. |
| +// - plangrace.go's capID const block gains capSidecars = "sidecars" and |
| +// capCustomDomains: the stored name of the lapse-only workers cap, a |
| +// plan_cap_state key, not a bucket key. key-site, like |
| +// registerCLIRoutes' "sidecars" route literal. |
| +func plans4dWriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), edgeAssetCache1WriteCensusInventory()...) |
| + replacements := []censusEntry{ |
| + {"internal/console/server.go", "NewServer", "key-site", "lit:instances", "3d69a7865f93dc4cff178530a8a79457991802eeb1220844a3d8ecc51851cf10"}, |
| + {"internal/console/plangrace.go", "const#1", "key-site", "lit:sidecars", "77ae90530cb1571fcd224c2aa5a935d7a85dac476775bdb8d0ffe4c2e6afd289"}, |
| + } |
| + for _, r := range replacements { |
| + found := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + entries[i], found = r, true |
| + } |
| + } |
| + if !found { |
| + entries = append(entries, r) |
| + } |
| + } |
| + return entries |
| +} |