From 8cf07b2ad1ed8c6646c48a74e9ecbb2bfeecb322 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 1 Nov 2017 13:59:11 -0500 Subject: libpod create and run patched version of the same code that went into crio Signed-off-by: baude --- test/kpod_create.bats | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/kpod_create.bats (limited to 'test/kpod_create.bats') diff --git a/test/kpod_create.bats b/test/kpod_create.bats new file mode 100644 index 000000000..46a460ecd --- /dev/null +++ b/test/kpod_create.bats @@ -0,0 +1,24 @@ +#!/usr/bin/env bats + +load helpers + +function teardown() { + cleanup_test +} + +ALPINE="docker.io/library/alpine:latest" + +@test "create a container based on local image" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker.io/library/busybox:latest + echo "$output" + [ "$status" -eq 0 ] + run ${KPOD_BINARY} ${KPOD_OPTIONS} create docker.io/library/busybox:latest ls + echo "$output" + [ "$status" -eq 0 ] +} + +@test "create a container based on a remote image" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} create ${ALPINE} ls + echo "$output" + [ "$status" -eq 0 ] +} -- cgit v1.2.3-54-g00ecf