From 6b087902745f5e7e7b63ee4917d41c06e6a32b76 Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Mon, 14 Sep 2026 19:06:39 -0300 Subject: [PATCH] test(resilience): list credentialHealthCheck in the configuration-only key set #12043 added credentialHealthCheck.intervalMinutes to DEFAULT_RESILIENCE_SETTINGS and to the /api/resilience GET projection. It is operator configuration (the background sweep cadence), not runtime breaker state, but the exact key-set assertion was never updated, so resilience-http-e2e failed on the release tip. The providerBreakers/runtime absence checks stay as they were. Refs #12732 --- .../maintenance/12732-resilience-api-credential-health-key.md | 1 + tests/integration/resilience-http-e2e.test.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog.d/maintenance/12732-resilience-api-credential-health-key.md diff --git a/changelog.d/maintenance/12732-resilience-api-credential-health-key.md b/changelog.d/maintenance/12732-resilience-api-credential-health-key.md new file mode 100644 index 0000000000..0fbb216189 --- /dev/null +++ b/changelog.d/maintenance/12732-resilience-api-credential-health-key.md @@ -0,0 +1 @@ +- **test(resilience):** the `/api/resilience` configuration-only key-set assertion now lists `credentialHealthCheck`, the sweep-interval setting #12043 added to the projection, so the integration suite stops reading a documented configuration key as leaked runtime state ([#12732](https://github.com/diegosouzapw/OmniRoute/issues/12732)) diff --git a/tests/integration/resilience-http-e2e.test.ts b/tests/integration/resilience-http-e2e.test.ts index ebcdb9c53a..280e597fb8 100644 --- a/tests/integration/resilience-http-e2e.test.ts +++ b/tests/integration/resilience-http-e2e.test.ts @@ -557,10 +557,12 @@ test("resilience API only exposes configuration, not runtime breaker state", asy assert.equal(response.status, 200); // Exact key set — this is the whole point of the test: configuration only. // `providerQuotaOverrides` joined the projection in #9871; - // `quotaPreflight` joined in #12014 (Settings → Routing Quota Preflight card). + // `quotaPreflight` joined in #12014 (Settings → Routing Quota Preflight card); + // `credentialHealthCheck` joined in #12043 (the sweep's intervalMinutes setting). assert.deepEqual(Object.keys(json).sort(), [ "comboCooldownWait", "connectionCooldown", + "credentialHealthCheck", "legacy", "providerBreaker", "providerCooldown",