From 2a3934f1dae43589c50df8fa545d20405f64d7af Mon Sep 17 00:00:00 2001 From: Urvashi Mohnani Date: Tue, 21 Nov 2017 16:51:17 -0500 Subject: Update kpod export to use the new container state and runtime Signed-off-by: Urvashi Mohnani Closes: #59 Approved by: rhatdan --- test/kpod_export.bats | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'test') 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 } -- cgit v1.2.3-54-g00ecf