Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(workflow-recipes): scope the resourceInstances ownership test to a supplied map
Jose Ramirez250b86736748
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex 77c5b2954..d9afc894f 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.473",+ "version": "0.1.474","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.473",+ "version": "0.1.474","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 0f54149d9..9a3f8f9b9 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.473",+ "version": "0.1.474","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/workflow/workflowReconciler.test.ts b/workflow-recipes/src/workflow/workflowReconciler.test.tsindex 936a735a1..e281dcf16 100644--- a/workflow-recipes/src/workflow/workflowReconciler.test.ts+++ b/workflow-recipes/src/workflow/workflowReconciler.test.ts@@ -950,9 +950,10 @@ describe('WorkflowReconciler.reconcileDelete — orphaned Service cleanup', () =expect(createdPodNames()).toContain(`${childRecipeName}-snippet-runner`)})- it('judges an inherited resource-instance Secret against the parent scope', async () => {- // The child inherits the parent's status.resourceInstances, so the snippet- // resource id resolves to the PARENT's instance Secret, owned by the parent.+ it('judges a Secret resolved through a supplied resourceInstances map against the parent scope', async () => {+ // Pins only the preflight: given a resourceInstances map, the snippet resource id+ // resolves through it and ownership is judged against the parent scope. The map+ // is supplied by hand; how a triggered child builds it is not covered here.mockCoreApi.readNamespacedSecret.mockResolvedValueOnce({metadata: { labels: { 'clerum.io/owner-recipe': parentScopeRecipeName } },data: { token: 'fixture-token' },