Repository navigation
test(conformance): migrate create-upload tests to testkit - #4606
politerealism wants to merge 1 commit into
Conversation
|
This pull request has had no activity for 14 days and is now marked stale. |
7d181e5 to
613b95b
Compare
Maintainer list changeGains approval rights: Confirm every change is intended. Anyone listed here can single-handedly satisfy |
|
/ok to test 613b95b |
|
Label |
|
Holding this until the conformance program lands, via either #5138 or its restack in #5249. Both PRs move the conformance suites from
The three tests passed in all five conformance lanes on the current head ( |
613b95b to
4e45045
Compare
|
/ok-to-test 4e45045 |
Move the three create_with_upload tests from e2e/rust into the conformance suite. They read each uploaded file back and compare exact content, check the nested file and that the directory is not flattened, and use the default upload path and the target's default image. Remove the legacy test and its now-unused SandboxGuard helpers. Signed-off-by: Evan Lezar <elezar@nvidia.com>
4e45045 to
7b5461e
Compare
Summary
Move the three
sandbox create --uploadtests from the legacy e2e crate into the testkit conformance suite. The behavior isn't driver-specific, so it runs against any prepared gateway. AddExecOutput::successandSandbox::shto testkit so the tests don't hand-write the exit-code check and thesh -cwrapper.Related Issue
Contributes to #3954. No separate issue: this migrates existing coverage.
Changes
ExecOutput::success(), matchingCliOutput::success(), and a publiccommandfield so the failure message names the command. AddSandbox::sh(script), which runssh -c.tests/suites/conformance/tests/create_upload.rswith three tests, keeping the original names so filters keep working:create_with_upload_directory_preserves_source_basename,create_with_multiple_uploadsandcreate_with_upload_single_file.Sandbox::shand comparing exact content. The originals matched the printed output ofsandbox create.--no-git-ignore, which isn't needed outside a Git work tree and hid the default path.--uploadtogether with a command, so each test checks the files oncecreatereturns, and the module doc notes the limitation.e2e/rust/tests/upload_create.rsand the now-unusedSandboxGuard::create_with_uploadandcreate_with_uploadsfrom the legacy harness.create-uploadrow to the conformance README.mainhas no end-to-end coverage ofsandbox create --uploadoutside the legacy test this PR removes.crates/openshell-clihas integration tests for the planning and error paths, but they stub the gateway and SSH transport.tests/suites/conformance/tests/file_transfer.rscovers the separatesandbox uploadcommand. None of them check directory basenames, multiple uploads or a single-file upload on a real sandbox.Testing
mise run pre-commitpasses on both commitscargo clippy --testsis clean intests/suites/conformancetest:e2e). Not run yet.Checklist