diff options
Diffstat (limited to 'test/kpod_export.bats')
-rw-r--r-- | test/kpod_export.bats | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/test/kpod_export.bats b/test/kpod_export.bats index aa577168d..5b8517afc 100644 --- a/test/kpod_export.bats +++ b/test/kpod_export.bats @@ -2,7 +2,6 @@ load helpers -IMAGE="redis:alpine" function teardown() { cleanup_test } @@ -12,24 +11,15 @@ function setup() { } @test "kpod export output flag" { - skip "Test needs to be converted to kpod run bash -c" - start_crio - run bash -c crioctl pod run bash -c --config "$TESTDATA"/sandbox_config.json + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} create $BB ls" echo "$output" [ "$status" -eq 0 ] - pod_id="$output" - run bash -c crioctl image pull "$IMAGE" - echo "$output" - [ "$status" -eq 0 ] - run bash -c crioctl ctr create --config "$TESTDATA"/container_config.json --pod "$pod_id" + ctr_id="$output" + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} export -o container.tar $ctr_id" echo "$output" [ "$status" -eq 0 ] - ctr_id="$output" - run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} export -o container.tar "$ctr_id" + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} rm $ctr_id" echo "$output" [ "$status" -eq 0 ] - cleanup_ctrs - cleanup_pods - stop_crio rm -f container.tar } |