Ask a question to get started
Enter to send•Shift+Enter new line
SandboxIntegrationTests()
BaseStandardTests
Test that no standard tests are overridden.
Whether the sandbox supports sync methods.
Whether the sandbox supports async methods.
Provide the sandbox backend under test.
Resets the shared test directory before yielding.
Yield a clean sandbox backend and tear it down after the class.
Write a new file and verify it can be read back via command execution.
Write a file and verify read() returns expected contents.
read()
Edit a file and assert exactly one occurrence was replaced.
Create files and verify ls_info() lists them.
ls_info()
Create files and verify glob_info() returns expected matches.
glob_info()
Verify grep_raw() performs literal matching on special characters.
grep_raw()
Upload one file and verify its contents on the sandbox.
Upload then download a file and verify bytes match.
Upload then download and verify bytes survive a roundtrip.
Uploading multiple files should preserve input order in responses.
Downloading multiple files should preserve input order in responses.
Upload and download binary bytes (0..255) without corruption.
Downloading a missing file should return error="file_not_found".
error="file_not_found"
Downloading a directory should fail with a reasonable error code.
Downloading a chmod 000 file should fail with a reasonable error code.
Downloading a relative path should fail with error="invalid_path".
error="invalid_path"
Uploading into a missing parent dir should error or roundtrip.
Some sandboxes auto-create parent directories; others return an error.
Uploading to a relative path should fail with error="invalid_path".
Standard integration tests for a SandboxBackendProtocol implementation.
SandboxBackendProtocol