Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(workflow-recipes): expect recipe uid on reconcileDelete spies
Alfredo Lopez4fb0e4a2580c
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex 7d7266deb..3a8869085 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.409",+ "version": "0.1.410","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.409",+ "version": "0.1.410","license": "SEE LICENSE IN LICENSE","dependencies": {"@aws-sdk/client-s3": "^3.1009.0",diff --git a/workflow-recipes/package.json b/workflow-recipes/package.jsonindex 8b8931026..8238903a1 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.409",+ "version": "0.1.410","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/reconciler/reconciler.test.ts b/workflow-recipes/src/reconciler/reconciler.test.tsindex 938ff2dea..cc810de4e 100644--- a/workflow-recipes/src/reconciler/reconciler.test.ts+++ b/workflow-recipes/src/reconciler/reconciler.test.ts@@ -9156,7 +9156,12 @@ describe('WorkflowRecipeReconciler', () => {await reconciler.reconcileDelete(recipe)- expect(workflowInfraCleanup).toHaveBeenCalledWith('test-recipe', 'sandbox-recipes', recipe.spec)+ expect(workflowInfraCleanup).toHaveBeenCalledWith(+ 'test-recipe',+ 'sandbox-recipes',+ recipe.spec,+ recipe.metadata.uid+ )expect(mockAppsApi.deleteNamespacedDeployment).toHaveBeenCalledWith({name: 'test-recipe-web-search-12345678',namespace: 'mcp-server',@@ -9198,7 +9203,12 @@ describe('WorkflowRecipeReconciler', () => {await reconciler.reconcileDelete(recipe)expect(order).toEqual(['sdk-revoke-and-cleanup', 'workflow-cleanup'])- expect(workflowInfraCleanup).toHaveBeenCalledWith('test-recipe', 'sandbox-recipes', recipe.spec)+ expect(workflowInfraCleanup).toHaveBeenCalledWith(+ 'test-recipe',+ 'sandbox-recipes',+ recipe.spec,+ recipe.metadata.uid+ )})it('forwards custom coordinator workflow fields to the workflow reconciler', async () => {