From d43f7867282f04d3003c44ee96eb2324c6d2a0aa Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Tue, 14 Nov 2017 09:55:00 -0500 Subject: Add docker transport to push image before final failure Signed-off-by: TomSweeneyRedHat Closes: #42 Approved by: rhatdan --- test/kpod_push.bats | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') 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" +} -- cgit v1.2.3-54-g00ecf