diff options
author | baude <bbaude@redhat.com> | 2018-02-05 15:54:48 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-06 15:55:50 +0000 |
commit | 1c4bcf3bc76ff70404a327f40bc29b619ed7d7cb (patch) | |
tree | 5129063829f8f2a8e56c208ca9a5e8c6ffd2c675 /test/podman_import.bats | |
parent | bf00c976dd7509b7d84d1fa5254f1ac26fc494e5 (diff) | |
download | podman-1c4bcf3bc76ff70404a327f40bc29b619ed7d7cb.tar.gz podman-1c4bcf3bc76ff70404a327f40bc29b619ed7d7cb.tar.bz2 podman-1c4bcf3bc76ff70404a327f40bc29b619ed7d7cb.zip |
Migrate more tests to ginkgo
Migrate the following to the ginkgo integration tests:
* images
* import
* inspect
* logs
* run_dns
Signed-off-by: baude <bbaude@redhat.com>
Closes: #295
Approved by: mheon
Diffstat (limited to 'test/podman_import.bats')
-rw-r--r-- | test/podman_import.bats | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/test/podman_import.bats b/test/podman_import.bats deleted file mode 100644 index 69c704a68..000000000 --- a/test/podman_import.bats +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env bats - -load helpers - -function teardown() { - cleanup_test -} - -function setup() { - copy_images -} - -@test "podman import with source and reference" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $ALPINE sleep 60" - echo "$output" - [ "$status" -eq 0 ] - ctr_id="$output" - run bash -cp "${PODMAN_BINARY} ${PODMAN_OPTIONS} export -o container.tar $ctr_id" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} import container.tar imported-image" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} images" - echo "$output" - [ "$status" -eq 0 ] - [[ "$output" == *"imported-image"* ]] - rm -f container.tar -} - -@test "podman import without reference" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $ALPINE sleep 60" - echo "$output" - [ "$status" -eq 0 ] - ctr_id="$output" - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} export -o container.tar $ctr_id" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} import container.tar" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} images" - echo "$output" - [ "$status" -eq 0 ] - [[ "$output" == *"<none>"* ]] - rm -f container.tar -} - -@test "podman import with message flag" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $ALPINE sleep 60" - echo "$output" - [ "$status" -eq 0 ] - ctr_id="$output" - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} export -o container.tar $ctr_id" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} import --message 'importing container test message' container.tar imported-image" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} history imported-image" - echo "$output" - [ "$status" -eq 0 ] - [[ "$output" == *"importing container test message"* ]] - rm -f container.tar -} - -@test "podman import with change flag" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d $ALPINE sleep 60" - echo "$output" - [ "$status" -eq 0 ] - ctr_id="$output" - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} export -o container.tar $ctr_id" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} import --change 'CMD=/bin/bash' container.tar imported-image" - echo "$output" - [ "$status" -eq 0 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} inspect imported-image" - echo "$output" - [ "$status" -eq 0 ] - [[ "$output" == *"/bin/bash"* ]] - rm -f container.tar -} |