aboutsummaryrefslogtreecommitdiff
path: root/test/kpod_push.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/kpod_push.bats')
-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"
+}