Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(hcc): type the renewed GFS mint mock as a GfsHostToken
Alfredo Lopez9f4d347c0121
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex 9f3a313df..122f3cf3d 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.373",+ "version": "0.1.374","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.373",+ "version": "0.1.374","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 6cd3117b3..e460edf62 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.373",+ "version": "0.1.374","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/host-context-controller/test/hostReconciler.lifecycle.test.ts b/host-context-controller/test/hostReconciler.lifecycle.test.tsindex a73f9d3cb..1dce0b4b2 100644--- a/host-context-controller/test/hostReconciler.lifecycle.test.ts+++ b/host-context-controller/test/hostReconciler.lifecycle.test.ts@@ -2561,7 +2561,8 @@ describe('HostReconciler stateless lifecycle — rejection matrix', () => {// A renewed GFS credential differs from the one the pod booted with, so// the record's revision moves away from the deployed one.vi.mocked(mintHostGfsToken).mockImplementationOnce(async ({ name, namespace }) => ({- ['to' + 'ken']: 'gfs-renewed-value',+ // The literal key type keeps the mock assignable to GfsHostToken.+ [('to' + 'ken') as 'token']: 'gfs-renewed-value',expiresInSeconds: 600,subject: `host:1st:${namespace}/${name}`,}))