Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion test/e2e/live/openclaw-plugin-runtime-exdev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ test(
[CLI_ENTRYPOINT, SANDBOX_NAME, "gateway", "restart"],
{
artifactName: "openclaw-weather-plugin-gateway-restart",
env: sandboxEnv,
env: { ...sandboxEnv, NEMOCLAW_OPENSHELL_BIN: openshell.cli },
timeoutMs: 180_000,
},
);
Expand Down
17 changes: 17 additions & 0 deletions test/e2e/support/e2e-clients.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,23 @@ describe("E2E fixture clients", () => {
},
);

it("rejects a wrapper as the owner of a canonical OpenShell listener", async () => {
const runner = new FakeRunner();
runner.enqueue({ stdout: "4321\n" });
runner.enqueue({ stdout: "/tmp/openshell-wrapper\n" });
runner.enqueue({ stdout: "/opt/openshell\n" });
runner.enqueue({ stdout: "/tmp/openshell-wrapper\n" });
runner.enqueue({
stdout:
"/opt/openshell --gateway nemoclaw --workspace default forward service alpha --target-port 18789 --target-host 127.0.0.1 --local 127.0.0.1:18789\n",
Comment thread
rsliter marked this conversation as resolved.
Resolved
});
runner.enqueue({ stdout: "4321\n" });

await expect(
new HostCliClient(runner).inspectOpenShellForwardListener("18789", "alpha"),
).resolves.toMatchObject({ valid: false });
});

it("composes installation, OpenShell resolution, and launch in authority order", async () => {
const runner = new FakeRunner();
runner.enqueue({ stdout: "installation complete\n" });
Expand Down
Loading