Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-api): align names-only response contract test
Alfredo Lopezd140aeb8e547
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex 86fb0fcd1..bff1abf2b 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.490",+ "version": "0.1.491","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.490",+ "version": "0.1.491","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/image-policy": "file:../packages/image-policy",diff --git a/control-api/package.json b/control-api/package.jsonindex 9b05f4639..f4fad6068 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.490",+ "version": "0.1.491","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/test/routes.adminChannelWriteResponse.test.ts b/control-api/test/routes.adminChannelWriteResponse.test.tsindex a85dda46c..face63c7c 100644--- a/control-api/test/routes.adminChannelWriteResponse.test.ts+++ b/control-api/test/routes.adminChannelWriteResponse.test.ts@@ -28,7 +28,7 @@ describe('admin channel write response', () => {Object.values(gateway).forEach(fn => fn.mockReset())})- it('preserves the result envelope while returning only the names-only summary', async () => {+ it('returns only the names of the keys written, never the Secret result', async () => {const fixtureValue = 'unit-fixture-value'const encodedFixtureValue = Buffer.from(fixtureValue).toString('base64')@@ -57,11 +57,7 @@ describe('admin channel write response', () => {secretName: 'cc-foo-credentials',namespace: 'channels',rotated: true,- result: {- name: 'cc-foo-credentials',- namespace: 'channels',- keys: ['telegram-bot-token'],- },+ rotatedKeys: ['telegram-bot-token'],})expect(JSON.stringify(response.body)).not.toContain(fixtureValue)expect(JSON.stringify(response.body)).not.toContain(encodedFixtureValue)