Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(hcc): explain Kubernetes error fixture contracts
Alfredo Lopez55fa4436c470
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex d4c6a7b3b..123d6ff74 100644--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-host-context-controller",- "version": "0.1.299",+ "version": "0.1.300","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.299",+ "version": "0.1.300","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/codex-catalog-projection": "file:../packages/codex-catalog-projection",diff --git a/host-context-controller/package.json b/host-context-controller/package.jsonindex 584a62378..e1d1a70ed 100644--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@ -1,6 +1,6 @@{"name": "clerum-host-context-controller",- "version": "0.1.299",+ "version": "0.1.300","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/host-context-controller/src/createMetrics.test.ts b/host-context-controller/src/createMetrics.test.tsindex e142448c0..7630d9a2b 100644--- a/host-context-controller/src/createMetrics.test.ts+++ b/host-context-controller/src/createMetrics.test.ts@@ -115,6 +115,8 @@ describe('Kubernetes create instrumentation', () => {expect(await count('NetworkPolicy', 'skipped')).toBe(0)})+ // Minimal fixtures isolate getErrorCode's supported layouts: ApiException.code+ // from the installed client and response.statusCode for compatibility.it.each([{ code: 409 }, { response: { statusCode: 409 } }])('counts a conflict as a subset of attempts and preserves the error: %j',async error => {diff --git a/host-context-controller/src/existenceReadMetrics.test.ts b/host-context-controller/src/existenceReadMetrics.test.tsindex fcda96ca0..5cc84e092 100644--- a/host-context-controller/src/existenceReadMetrics.test.ts+++ b/host-context-controller/src/existenceReadMetrics.test.ts@@ -98,6 +98,8 @@ describe('Kubernetes existence-read instrumentation', () => {})+ // Minimal fixtures pin classification and rejection identity without constructing+ // SDK errors: ApiException.code and getErrorCode's response.statusCode compatibility.it.each([[{ code: 404 }, 'absent'],[{ response: { statusCode: 404 } }, 'absent'],