Repository navigation
Commit a2554c4
committed
test(conformance): migrate workspace lifecycle tests to workspace stories
Move the workspace lifecycle tests from the legacy e2e crate into a new
`workspaces` conformance area. Workspace create, inspect, scope and
delete behavior is not driver-specific, so it belongs with the other
conformance stories and runs against any prepared gateway.
The original `workspace_full_crud_lifecycle` checked seven behaviors in
one test. Split it so a failure points at one behavior:
- workspace_full_crud_lifecycle: create, get, list as Active, delete when
empty, gone afterwards (name kept so filters keep working)
- template_is_scoped_to_its_workspace (new name): a resource is listed in
its own workspace and in the all-workspaces view with its owner, and not
in the default workspace
- workspace_terminating_rejects_creates: name kept. It now also covers the
deletion guard, because a refused delete is what moves the workspace to
Terminating, which is a public phase
The scoped resource is a sandbox template, not a provider. The original
used a provider of type `openai`, which needs a provider profile that
only the wrapper lanes import. A freshly provisioned tmachine gateway has
none, so those stories failed there. A template is workspace-scoped, is
covered by the same delete guard, and needs no profile, credential or
image. This drops the `provider list --all-workspaces` check; the
all-workspaces view is still checked, for templates.
Assertions check exit status and listed state from `--output json`
instead of matching message text. The CLI exposes no structured error and
no structured `workspace get`, so those limits are documented in the area.
The paginated listings are searched, so a busy gateway does not hide an
entry, and a missing collection in the output is an error.
A passing story removes what it created. Cleanup runs only after a
failure and reports anything other than "not found". The shared runner
does not track workspaces, so this stays in the area helpers.
Remove the old test file, its Cargo target and its Podman archive
exclusion, and list the area in the conformance README.
Contributes to NVIDIA#3954
Signed-off-by: politerealism <[email protected]>1 parent 092c9bb commit a2554c4
9 files changed
Lines changed: 468 additions & 286 deletions
File tree
- e2e
- rust
- tests
- suites/conformance
- cli/tests/workspaces
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 212 | | |
218 | 213 | | |
219 | 214 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments