feat(FN-4640): complete Step 1 — extend RunAuditDomain in core
Fusion-Task-Id: FN-4640 Fusion-Task-Lineage: 4a91265f-1714-4854-b08d-7ddb06074253
This commit is contained in:
committed by
gsxdsm
parent
c7a6d68f2e
commit
ef7eb2f3ea
@@ -240,6 +240,27 @@ describe("Run Audit Integration", () => {
|
||||
expect(gitEvents).toHaveLength(1);
|
||||
expect(gitEvents[0].domain).toBe("git");
|
||||
});
|
||||
|
||||
it("round-trips sandbox domain events and filters by sandbox", () => {
|
||||
const runId = "integration-test-run-sandbox-001";
|
||||
|
||||
const created = store.recordRunAuditEvent({
|
||||
runId,
|
||||
agentId: "agent-sandbox",
|
||||
taskId: "FN-SANDBOX-001",
|
||||
domain: "sandbox",
|
||||
mutationType: "sandbox:run",
|
||||
target: "native",
|
||||
metadata: { timeoutMs: 15000, exitCode: 0 },
|
||||
});
|
||||
|
||||
expect(created.domain).toBe("sandbox");
|
||||
|
||||
const sandboxEvents = store.getRunAuditEvents({ runId, domain: "sandbox" });
|
||||
expect(sandboxEvents).toHaveLength(1);
|
||||
expect(sandboxEvents[0].domain).toBe("sandbox");
|
||||
expect(sandboxEvents[0].mutationType).toBe("sandbox:run");
|
||||
});
|
||||
});
|
||||
|
||||
describe("complete event shape verification", () => {
|
||||
|
||||
Reference in New Issue
Block a user