test: cleanup pods at test teardown
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
4578cc93d1
commit
ab8b65b09e
3 changed files with 18 additions and 7 deletions
|
@ -3,17 +3,19 @@
|
|||
load helpers
|
||||
|
||||
function teardown() {
|
||||
stop_ocid
|
||||
cleanup_test
|
||||
}
|
||||
|
||||
# PR#59
|
||||
@test "pod release name on remove" {
|
||||
skip "cannot be run in a container yet"
|
||||
if "$TRAVIS"; then
|
||||
skip "cannot yet run this test in a container"
|
||||
fi
|
||||
|
||||
start_ocid
|
||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||
[ "$status" -eq 0 ]
|
||||
echo "$output"
|
||||
id="$output"
|
||||
run ocic pod stop --id "$id"
|
||||
[ "$status" -eq 0 ]
|
||||
|
@ -22,7 +24,4 @@ function teardown() {
|
|||
[ "$status" -eq 0 ]
|
||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
# TODO: cleanup all the stuff from runc, meaning list pods and stop remove them
|
||||
# pod list + pod stop + pod remove in cleanup
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue