Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(wrc): expect ConfigMap presence to include annotations

Alfredo Lopezfa89640a5267
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.json
index db25b8153..3fce4e638 100644
--- a/workflow-recipes/package-lock.json
+++ b/workflow-recipes/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "workload-recipes-controller",
- "version": "0.1.315",
+ "version": "0.1.316",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "workload-recipes-controller",
- "version": "0.1.315",
+ "version": "0.1.316",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@aws-sdk/client-s3": "^3.1009.0",
diff --git a/workflow-recipes/package.json b/workflow-recipes/package.json
index e827edc73..f6165bc91 100644
--- a/workflow-recipes/package.json
+++ b/workflow-recipes/package.json
@@ -1,6 +1,6 @@
{
"name": "workload-recipes-controller",
- "version": "0.1.315",
+ "version": "0.1.316",
"description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface",
"main": "dist/main.js",
"engines": {
diff --git a/workflow-recipes/tests/unit/workflow/k8sSecretReaderImpl.test.ts b/workflow-recipes/tests/unit/workflow/k8sSecretReaderImpl.test.ts
index 62a3ba710..39929beb6 100644
--- a/workflow-recipes/tests/unit/workflow/k8sSecretReaderImpl.test.ts
+++ b/workflow-recipes/tests/unit/workflow/k8sSecretReaderImpl.test.ts
@@ -72,7 +72,11 @@ describe('K8sSecretReaderImpl', () => {
})
const reader = new K8sSecretReaderImpl(api)
const result = await reader.readConfigMapWithPresence('mcp-host', 'clerum-llm-allowed-models')
- expect(result).toEqual({ exists: true, data: { openai: '[{"model":"gpt-4"}]' } })
+ expect(result).toEqual({
+ exists: true,
+ data: { openai: '[{"model":"gpt-4"}]' },
+ annotations: {},
+ })
})
it('returns { exists: true, data: {} } when the CM exists but data is omitted', async () => {
@@ -83,7 +87,7 @@ describe('K8sSecretReaderImpl', () => {
})
const reader = new K8sSecretReaderImpl(api)
const result = await reader.readConfigMapWithPresence('mcp-host', 'clerum-llm-allowed-models')
- expect(result).toEqual({ exists: true, data: {} })
+ expect(result).toEqual({ exists: true, data: {}, annotations: {} })
})
it('returns { exists: false } on a real 404', async () => {