Skip to content

Commit 75d1ba9

Browse files
committed
test running command in secured envd
1 parent d5726cd commit 75d1ba9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/js-sdk/tests/sandbox/files/signing.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,13 @@ test('test upload file with missing signing', async () => {
8585
assert.equal(resBody, '{"code":401,"message":"missing signature query parameter"}\n')
8686

8787
await sbx.kill()
88-
})
88+
})
89+
90+
test('test command run withing secured sbx', async () => {
91+
const sbx = await Sandbox.create(template, { timeoutMs: timeout, secure: true })
92+
const response = await sbx.commands.run('echo Hello World!')
93+
94+
assert.equal(response.stdout, 'Hello World!\n')
95+
})
96+
97+

0 commit comments

Comments
 (0)