From bd393f9d97b1792f2eb71e3d5d215c335b456358 Mon Sep 17 00:00:00 2001 From: Senthil Ravichandran Date: Sun, 16 Aug 2026 11:05:54 -0700 Subject: [PATCH] test(uninstall): align post-merge portable fixtures Keep the protected portable uninstall postcondition aligned with the retained private config root, and make the public-wrapper fixture prove the selected gateway is connected before sandbox absence. Signed-off-by: Senthil Ravichandran --- test/e2e/live/podman-portable-uninstall.test.ts | 3 ++- test/uninstall.test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/live/podman-portable-uninstall.test.ts b/test/e2e/live/podman-portable-uninstall.test.ts index 57927396fb8..62dd1b654c0 100644 --- a/test/e2e/live/podman-portable-uninstall.test.ts +++ b/test/e2e/live/podman-portable-uninstall.test.ts @@ -334,7 +334,8 @@ test( .filter((entry) => entry.isFile() || entry.isSymbolicLink()) .map((entry) => path.join(entry.parentPath, entry.name)); expect(residualFiles).toEqual([retirementRecord]); - expect(fs.existsSync(configDir)).toBe(false); + expect(fs.readdirSync(path.dirname(expectedContainersConf))).toEqual([]); + expect(fs.statSync(path.dirname(expectedContainersConf)).mode & 0o777).toBe(0o700); const managerEnvironment = await runCommand( shellProbe, "systemctl", diff --git a/test/uninstall.test.ts b/test/uninstall.test.ts index b59ad213e1a..cc94a516104 100644 --- a/test/uninstall.test.ts +++ b/test/uninstall.test.ts @@ -278,6 +278,7 @@ exit 0 path.join(fakeBin, "openshell"), `#!/usr/bin/env bash case "$*" in + "status -g nemoclaw") printf 'Status: Connected\\nGateway: nemoclaw\\n' ;; "gateway list -o json") printf '[{"name":"nemoclaw"},{"name":"nemoclaw-9124"}]\\n' ;; "sandbox delete -g nemoclaw my-assistant") printf "Error: status: NotFound, sandbox 'my-assistant' not found\\n" >&2