summaryrefslogtreecommitdiff
path: root/test/podman_pull.bats
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-30 13:19:01 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-31 20:23:31 +0000
commit3c044f9267f62b8f7f88c7395ad325df3bf420f5 (patch)
treed868f625ff78b5403fa82b9e7f51ffdaa953356a /test/podman_pull.bats
parentecb74aa40641cd322112401a593eaf26458e9d24 (diff)
downloadpodman-3c044f9267f62b8f7f88c7395ad325df3bf420f5.tar.gz
podman-3c044f9267f62b8f7f88c7395ad325df3bf420f5.tar.bz2
podman-3c044f9267f62b8f7f88c7395ad325df3bf420f5.zip
Ginkgo Tests: ps, pull, push and rm
Migrate ps, pull, push, and rm from bats to ginkgo. Also, fixed a conditional issue with adding ports when an image defines the port and the user wants to override it. Signed-off-by: baude <bbaude@redhat.com> Closes: #277 Approved by: baude
Diffstat (limited to 'test/podman_pull.bats')
-rw-r--r--test/podman_pull.bats136
1 files changed, 0 insertions, 136 deletions
diff --git a/test/podman_pull.bats b/test/podman_pull.bats
deleted file mode 100644
index 4052d56d5..000000000
--- a/test/podman_pull.bats
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/usr/bin/env bats
-
-load helpers
-
-function teardown() {
- cleanup_test
-}
-
-@test "podman pull from docker with tag" {
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull debian:6.0.10
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi debian:6.0.10
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull from docker without tag" {
- run ${PODMAN_BINARY} $PODMAN_OPTIONS pull debian
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi debian
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull from a non-docker registry with tag" {
- run ${PODMAN_BINARY} $PODMAN_OPTIONS pull registry.fedoraproject.org/fedora:rawhide
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi registry.fedoraproject.org/fedora:rawhide
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull from a non-docker registry without tag" {
- run ${PODMAN_BINARY} $PODMAN_OPTIONS pull registry.fedoraproject.org/fedora
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi registry.fedoraproject.org/fedora
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull using digest" {
- run ${PODMAN_BINARY} $PODMAN_OPTIONS pull alpine@sha256:1072e499f3f655a032e88542330cf75b02e7bdf673278f701d7ba61629ee3ebe
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi alpine:latest
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull from a non existent image" {
- run ${PODMAN_BINARY} $PODMAN_OPTIONS pull umohnani/get-started
- echo "$output"
- [ "$status" -ne 0 ]
-}
-
-@test "podman pull from docker with shortname" {
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull debian
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi docker.io/debian:latest
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull from docker with shortname and tag" {
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull debian:6.0.10
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} $PODMAN_OPTIONS rmi docker.io/debian:6.0.10
- echo "$output"
- [ "$status" -eq 0 ]
-}
-
-@test "podman pull from docker-archive" {
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} save -o alp.tar alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rmi alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull docker-archive:alp.tar
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rmi alpine
- echo "$output"
- [ "$status" -eq 0 ]
- rm -f alp.tar
-}
-
-@test "podman pull from oci-archive" {
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} save --format oci-archive -o oci-alp.tar alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rmi alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull oci-archive:oci-alp.tar
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rmi alpine
- echo "$output"
- [ "$status" -eq 0 ]
- rm -f oci-alp.tar
-}
-
-@test "podman pull from local directory" {
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run mkdir test_pull_dir
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} push alpine dir:test_pull_dir
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rmi alpine
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} pull dir:test_pull_dir
- echo "$output"
- [ "$status" -eq 0 ]
- run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rmi test_pull_dir
- echo "$output"
- [ "$status" -eq 0 ]
- rm -rf test_pull_dir
-}