Skip to content

Commit d63af4f

Browse files
politerealismelezar
authored andcommitted
test(conformance): port workspace lifecycle tests to testkit
Move e2e/rust workspace_lifecycle into a conformance workspaces suite on #[testkit::test], split into workspace_full_crud_lifecycle, template_is_scoped_to_its_workspace and workspace_terminating_rejects_creates. Use a sandbox template as the scoped resource so no provider profile is needed, and assert on exit status and listed state rather than message text. Drop the legacy test, its Cargo target, and its Podman archive exclusion. Supersedes #4607. Signed-off-by: Evan Lezar <[email protected]>
1 parent b4a6541 commit d63af4f

6 files changed

Lines changed: 262 additions & 284 deletions

File tree

‎e2e/rust/Cargo.toml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ name = "forward_proxy_jsonrpc_l7"
219219
path = "tests/forward_proxy_jsonrpc_l7.rs"
220220
required-features = ["e2e-host-gateway"]
221221

222-
[[test]]
223-
name = "workspace_lifecycle"
224-
path = "tests/workspace_lifecycle.rs"
225-
required-features = ["e2e"]
226-
227222
[[test]]
228223
name = "supervisor_middleware_http_hooks"
229224
path = "tests/supervisor_middleware_http_hooks.rs"

‎e2e/rust/tests/workspace_lifecycle.rs‎

Lines changed: 0 additions & 278 deletions
This file was deleted.

‎tests/suites/conformance/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ nextest run the tests as the library's unit tests. The crate also builds the
1919
| `labels` | Labels are stored and select sandboxes in `sandbox list` |
2020
| `templates` | A sandbox created from a template uses its workload; duplicate, deleted and missing templates return the right errors |
2121
| `settings` | Sandbox-scoped settings |
22+
| `workspaces` | Workspace create, get, list and delete; a template is scoped to its workspace; a workspace holding a resource goes Terminating, rejects creates and deletes once empty |
2223
| `process` | Core dumps are disabled for sandbox processes |
2324
| `filesystem-policy` | Landlock: a hard requirement accepts added device paths; a replaced policy path rejects the next launch |
2425

‎tests/suites/conformance/src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ mod process;
2121
mod settings;
2222
mod smoke;
2323
mod templates;
24+
mod workspaces;

0 commit comments

Comments
 (0)