Skip to content

Commit 9a15e6e

Browse files
committed
test(snapshot): name capture boundaries precisely
1 parent 3f05000 commit 9a15e6e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/actions/sandbox/snapshot/backup-authority.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ describe("managed snapshot backup authority", () => {
191191
privilegedCaptureMocks.withPrivilegedSandboxExecutionLease.mockClear();
192192
});
193193

194-
it("captures the exact OpenClaw config through bounded privileged execution", () => {
194+
it("captures the exact OpenClaw configuration with bounded privileged execution", () => {
195195
const data = Buffer.from('{"models":{"default":"nvidia/test"}}\n');
196196
privilegedCaptureMocks.dockerSpawnSync.mockReturnValue({
197197
status: 0,
@@ -247,7 +247,7 @@ describe("managed snapshot backup authority", () => {
247247
expect(result).toEqual({ outcome: "missing" });
248248
});
249249

250-
it("fails closed with a fixed privileged safety reason", () => {
250+
it("returns a fixed failure reason when privileged capture rejects unsafe file metadata", () => {
251251
privilegedCaptureMocks.dockerSpawnSync.mockReturnValue({
252252
status: 11,
253253
signal: null,

src/lib/state/sandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export interface BackupOptions {
176176
*/
177177
validateBeforePublish?: () => void;
178178
/**
179-
* Internal fallback for a declared state file that the sandbox-user SSH
179+
* Internal capture path for a declared state file that the sandbox-user SSH
180180
* transport cannot read. The caller must independently enforce path,
181181
* identity, and stable-read constraints before returning bytes.
182182
*/

test/openclaw-config-snapshot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function writeOpenClawRegistry(sandboxName: string): void {
121121
}
122122

123123
describe("OpenClaw durable config file (#5027)", () => {
124-
it("falls back to a managed stable capture when SSH cannot read the sealed config", () => {
124+
it("uses a supplied state-file capture when SSH cannot read openclaw.json", () => {
125125
const fixture = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-sealed-config-snapshot-"));
126126
const oldPath = process.env.PATH;
127127
const oldOpenshell = process.env.NEMOCLAW_OPENSHELL_BIN;

0 commit comments

Comments
 (0)