diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2017-11-21 16:51:17 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-22 16:17:06 +0000 |
commit | 2a3934f1dae43589c50df8fa545d20405f64d7af (patch) | |
tree | 57f61f01f7274bdfd733dfb01ecdb514c3f1cbd7 /test/kpod_export.bats | |
parent | 91b406ea4a175a7b996f8810e1eb2f2653ff335d (diff) | |
download | podman-2a3934f1dae43589c50df8fa545d20405f64d7af.tar.gz podman-2a3934f1dae43589c50df8fa545d20405f64d7af.tar.bz2 podman-2a3934f1dae43589c50df8fa545d20405f64d7af.zip |
Update kpod export to use the new container state and runtime
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Closes: #59
Approved by: rhatdan
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 } |