Skip to content

Commit aaf2a86

Browse files
committed
test(e2e): keep workflow support under budget
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
1 parent fa40688 commit aaf2a86

1 file changed

Lines changed: 12 additions & 32 deletions

File tree

test/e2e-scenario/support-tests/e2e-scenarios-workflow.test.ts

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -142,26 +142,6 @@ describe("e2e-vitest-scenarios workflow boundary", () => {
142142
selectedFreeStandingJobs: ["openshell-version-pin-vitest"],
143143
registryScenarios: [],
144144
});
145-
expect(
146-
evaluateE2eVitestWorkflowDispatchSelectors({
147-
scenarios: "openshell-gateway-auth-contract",
148-
}),
149-
).toMatchObject({
150-
valid: true,
151-
liveScenariosRuns: false,
152-
selectedFreeStandingJobs: ["openshell-gateway-auth-contract-vitest"],
153-
registryScenarios: [],
154-
});
155-
expect(
156-
evaluateE2eVitestWorkflowDispatchSelectors({
157-
jobs: "openshell-gateway-auth-contract-vitest",
158-
}),
159-
).toMatchObject({
160-
valid: true,
161-
liveScenariosRuns: false,
162-
selectedFreeStandingJobs: ["openshell-gateway-auth-contract-vitest"],
163-
registryScenarios: [],
164-
});
165145
expect(
166146
evaluateE2eVitestWorkflowDispatchSelectors({ scenarios: "skill-agent" }),
167147
).toMatchObject({
@@ -660,19 +640,19 @@ describe("e2e-vitest-scenarios workflow boundary", () => {
660640
it("derives the free-standing inventory from workflow job metadata", { timeout: 60_000 }, () => {
661641
const inventory = readFreeStandingJobsInventory();
662642
expect(validateFreeStandingWorkflowInventory()).toEqual([]);
663-
expect(inventory.allowedJobs).toContain("openshell-version-pin-vitest");
664-
expect(inventory.allowedJobs).toContain("openshell-gateway-auth-contract-vitest");
665-
expect(inventory.allowedJobs).toContain("gateway-guard-recovery");
666-
expect(inventory.allowedJobs).toContain("upgrade-stale-sandbox-vitest");
667-
expect(inventory.scenarioToJob.get("openshell-version-pin")).toBe(
668-
"openshell-version-pin-vitest",
669-
);
670-
expect(inventory.scenarioToJob.get("openshell-gateway-auth-contract")).toBe(
671-
"openshell-gateway-auth-contract-vitest",
672-
);
673-
expect(inventory.scenarioToJob.get("upgrade-stale-sandbox")).toBe(
674-
"upgrade-stale-sandbox-vitest",
643+
expect(inventory.allowedJobs).toEqual(
644+
expect.arrayContaining([
645+
"openshell-version-pin-vitest",
646+
"openshell-gateway-auth-contract-vitest",
647+
"gateway-guard-recovery",
648+
"upgrade-stale-sandbox-vitest",
649+
]),
675650
);
651+
expect(Object.fromEntries(inventory.scenarioToJob)).toMatchObject({
652+
"openshell-gateway-auth-contract": "openshell-gateway-auth-contract-vitest",
653+
"openshell-version-pin": "openshell-version-pin-vitest",
654+
"upgrade-stale-sandbox": "upgrade-stale-sandbox-vitest",
655+
});
676656
expect(inventory.scenarioToJob.get("credential-migration")).toBeUndefined();
677657
expect(
678658
inventory.allowedJobs.every((job) =>

0 commit comments

Comments
 (0)