Repository navigation
Commit fea144c
authored
test(conformance): port workspace lifecycle tests to testkit (#4607)
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.
A refused workspace delete is checked to leave the workspace Terminating, so
the failure is the resource guard rather than an unrelated error.
Add Context::cli_find_listed to testkit to find an entry in a paginated
--output json listing, erroring when the collection key is missing. Use it
in the workspaces suite and in conformance/src/cli.rs, and list it in the
testkit README.
Drop the legacy test, its Cargo target, and its Podman archive exclusion.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: politerealism <burdcat17@gmail.com>1 parent ab14373 commit fea144c
9 files changed
Lines changed: 275 additions & 329 deletions
File tree
- e2e/rust
- tests
- tests
- suites/conformance
- src
- testkit
- testkit/src
- tmachine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 229 | | |
235 | 230 | | |
236 | 231 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
| |||
226 | 221 | | |
227 | 222 | | |
228 | 223 | | |
229 | | - | |
230 | | - | |
| 224 | + | |
231 | 225 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
269 | 230 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
0 commit comments