v2 plan: fake upstream answers /props without counting it (task 01 replacement helper); note the finding
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,7 @@ bytes as for the other endpoints.
|
||||
## Files
|
||||
|
||||
- Copy: `internal/health/props_test.go`
|
||||
- Copy (**replaces** v1's): `internal/proxy/helpers_test.go` — the fake upstream now answers `/props` without counting it as a hit, so the v1 proxy tests' exact hit counts still hold once the poller asks for it
|
||||
- Modify: `internal/health/health.go`, `internal/admin/admin.go` (or wherever `HostView` is built), `docs/implementer-log.md`
|
||||
|
||||
## Interfaces
|
||||
@@ -49,13 +50,14 @@ Rules the tests check:
|
||||
|
||||
## Steps
|
||||
|
||||
- [ ] **1.** `git switch master && git switch -c v2`; `cp docs/plans/v2/_files/internal/health/props_test.go internal/health/`.
|
||||
- [ ] **1.** `git switch master && git switch -c v2`; `cp docs/plans/v2/_files/internal/health/props_test.go internal/health/`;
|
||||
`cp docs/plans/v2/_files/internal/proxy/helpers_test.go internal/proxy/`.
|
||||
- [ ] **2. See it fail** (compile: `NCtx` undefined). **3. Write the code.** `gofmt -w internal/`.
|
||||
- [ ] **4.** `go test -race -count=1 ./internal/health/ ./internal/admin/` → both `ok`.
|
||||
- [ ] **5.** `make gate` → `gate: ok`. **6.** Row `v2/01-props`; commit.
|
||||
|
||||
```sh
|
||||
git add internal/health internal/admin docs/implementer-log.md
|
||||
git add internal/health internal/admin internal/proxy/helpers_test.go docs/implementer-log.md
|
||||
git commit
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user