Repository navigation
test(mcpx): exercise the /v1 ops group over the socket (#8466) - #11304
Conversation
…8466) Burn down three of the nine /v1 op exemptions in the feature-coverage guard: each op gets a real integration-test exercise over the coverage-recording socket client, and its exemption line is deleted (the guard fails on an exemption for a covered feature, so the deletion is self-verifying). - refresh: POST /v1/refresh on an empty configuration answers 200 with empty namespaces/added/removed/errors. - adapters_remove: DELETE of an undeclared name is answered by the handler itself (404 naming the declaration), mirroring apis_remove. - authz_decisions_clear: DELETE answers 200 with the emptied decision report (permissive stage, total 0). Six exemptions remain (daemon_restart, restart, shutdown, secret_request_decline, secrets_set, secrets_unset); #8466 stays open.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Adds one integration exercise per /v1 op that the ops-group burn-down still exempted: adapters_remove, authz_decisions_clear, daemon_restart, refresh, restart, secret_request_decline, secrets_set, secrets_unset and shutdown. Each drives the real route over the daemon's socket, so the feature-coverage ledger gains an `op` row and the matching exemption lines are removed. Supervised demo children outlive the daemon by design, so the tests that start them retire them (as takeover_test.go does) to keep the e2e sweep clean. Salvaged from #11291 (ops_group_coverage_test.go); this PR replaces the three-op coverage_ops_test.go it carried.
Closes the #8466 ops-group burn-down: one integration exercise for each of the nine /v1 ops still exempted (adapters_remove, authz_decisions_clear, daemon_restart, refresh, restart, secret_request_decline, secrets_set, secrets_unset, shutdown). Each drives the real route over the daemon socket, so the coverage ledger gains an
oprow, and the nine exemption lines are removed.Salvaged from #11291 (ops_group_coverage_test.go). Supervised demo children are retired by the tests that start them, as takeover_test.go does.
Verified: the nine tests pass together and individually (
go test ./internal/e2e -run ...); ledger has all nine op rows. The full-suite guard was not run here (slow); CI is not a merge gate per .github/ci-policy.md.