You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ced747a
Browse filesBrowse the repository at this point in the historyBrowse files
test(conformance): migrate upload_create into file-transfer conformance
Port sandbox create --upload coverage from e2e/rust/tests/upload_create.rs
into a new file-transfer/create-upload scenario in
crates/openshell-conformance/src/scenarios/file_transfer.rs, grouped
alongside the other file/template-transfer conformance scenarios rather than
left scattered in the Podman-specific e2e suite. Wire it into the
FILE_TRANSFER_SCENARIO chain and the conformance CLI test crate, and remove
the old per-driver test file (picked up by Cargo's default test
auto-discovery; it had no Cargo.toml or artifacts.nix entries to clean up).
Verified against an ephemeral Podman gateway: the new create-upload scenario
and the existing path-safety scenario pass. round-trip and git-filtering
already fail against current main on code this change does not touch (the
CLI doesn't warn/reject non-Git-tree uploads the way those scenarios assert)
-- pre-existing, out of scope here.
Signed-off-by: politerealism <burdcat17@gmail.com>
(cherry picked from commit 398dfe3)
Signed-off-by: politerealism <burdcat17@gmail.com>
/// Certify that `sandbox create --upload <dir>:<dest>` preserves the source
39
+
/// directory's basename under the destination.
40
+
///
41
+
/// - **Behavior:** a directory passed to `sandbox create --upload <dir>:<dest>` is available in the sandbox under `<dest>/<directory name>`, keeping the source directory's basename. Verified by reading a file from inside the sandbox.
42
+
/// - **Preconditions:** a reachable gateway whose compute driver can create sandboxes from the default image (supplied by target preparation). The test writes its upload sources to a local temporary directory.
43
+
/// - **Permissions:** an identity allowed to create, execute in, and delete sandboxes.
44
+
/// - **Side effects:** creates one sandbox named from the run id, which the runner removes on success and on failure (a cleanup failure fails the scenario), and a local temporary directory.
/// Certify that `sandbox create` accepts several `--upload` flags at once.
51
+
///
52
+
/// - **Behavior:** several `--upload` flags on one `sandbox create` are all pre-loaded to their own destinations. Verified by reading a file from each destination inside the sandbox.
53
+
/// - **Preconditions:** a reachable gateway whose compute driver can create sandboxes from the default image (supplied by target preparation). The test writes its upload sources to a local temporary directory.
54
+
/// - **Permissions:** an identity allowed to create, execute in, and delete sandboxes.
55
+
/// - **Side effects:** creates one sandbox named from the run id, which the runner removes on success and on failure (a cleanup failure fails the scenario), and a local temporary directory.
/// Certify that `sandbox create --upload <file>` pre-loads a single file.
62
+
///
63
+
/// - **Behavior:** a single file passed to `sandbox create --upload` is available in the sandbox at the requested destination. Verified by reading it from inside the sandbox.
64
+
/// - **Preconditions:** a reachable gateway whose compute driver can create sandboxes from the default image (supplied by target preparation). The test writes its upload sources to a local temporary directory.
65
+
/// - **Permissions:** an identity allowed to create, execute in, and delete sandboxes.
66
+
/// - **Side effects:** creates one sandbox named from the run id, which the runner removes on success and on failure (a cleanup failure fails the scenario), and a local temporary directory.
0 commit comments