Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions test/e2e-scenario/framework-tests/e2e-clients.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,30 @@ describe("E2E fixture clients", () => {
});
});

it("gateway client preserves caller-provided probe options", async () => {
const runner = new FakeRunner();
const host = new HostCliClient(runner, { cliPath: "nemoclaw" });
const gateway = new GatewayClient(host);

await gateway.status({
artifactName: "custom-gateway-status",
env: { NEMOCLAW_TEST_VALUE: "1" },
inheritEnv: true,
timeoutMs: 123,
});

expect(runner.calls[0]).toEqual({
command: "nemoclaw",
args: ["gateway", "status"],
options: {
artifactName: "custom-gateway-status",
env: { NEMOCLAW_TEST_VALUE: "1" },
inheritEnv: true,
timeoutMs: 123,
},
});
});

it("sandbox client builds OpenShell sandbox commands", async () => {
const runner = new FakeRunner();
const sandbox = new SandboxClient(runner, { openshellPath: "openshell" });
Expand All @@ -121,6 +145,29 @@ describe("E2E fixture clients", () => {
});
});

it("sandbox client preserves caller-provided probe options", async () => {
const runner = new FakeRunner();
const sandbox = new SandboxClient(runner, { openshellPath: "openshell" });

await sandbox.status("assistant", {
artifactName: "custom-sandbox-status",
env: { NEMOCLAW_TEST_VALUE: "1" },
inheritEnv: true,
timeoutMs: 123,
});

expect(runner.calls[0]).toEqual({
command: "openshell",
args: ["sandbox", "status", "assistant"],
options: {
artifactName: "custom-sandbox-status",
env: { NEMOCLAW_TEST_VALUE: "1" },
inheritEnv: true,
timeoutMs: 123,
},
});
});

it("sandbox client rejects flag-shaped sandbox names before command construction", async () => {
const runner = new FakeRunner();
const sandbox = new SandboxClient(runner, { openshellPath: "openshell" });
Expand Down
Loading
Loading