aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2017-11-14 09:55:00 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-28 12:53:25 +0000
commitd43f7867282f04d3003c44ee96eb2324c6d2a0aa (patch)
treefe4f893668d4ec72a590b9c1f44ad97417172a7f /test
parentda44ec438dd854dd7cd0d0eae1e37bf41cfe4929 (diff)
downloadpodman-d43f7867282f04d3003c44ee96eb2324c6d2a0aa.tar.gz
podman-d43f7867282f04d3003c44ee96eb2324c6d2a0aa.tar.bz2
podman-d43f7867282f04d3003c44ee96eb2324c6d2a0aa.zip
Add docker transport to push image before final failure
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #42 Approved by: rhatdan
Diffstat (limited to 'test')
-rw-r--r--test/kpod_push.bats12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/kpod_push.bats b/test/kpod_push.bats
index 15672ba82..d9b1811cc 100644
--- a/test/kpod_push.bats
+++ b/test/kpod_push.bats
@@ -72,3 +72,15 @@ function setup() {
echo "$output"
[ "$status" -eq 0 ]
}
+
+@test "kpod push without transport" {
+ run ${KPOD_BINARY} $KPOD_OPTIONS pull "$ALPINE"
+ echo "$output"
+ [ "$status" -eq 0 ]
+ # TODO: The following should fail until a registry is running in Travis CI.
+ run ${KPOD_BINARY} $KPOD_OPTIONS push "$ALPINE" localhost:5000/my-alpine
+ echo "$output"
+ [ "$status" -ne 0 ]
+ run ${KPOD_BINARY} $KPOD_OPTIONS rmi "$ALPINE"
+ echo "$output"
+}