summaryrefslogtreecommitdiff
path: root/test/podman_create.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/podman_create.bats')
-rw-r--r--test/podman_create.bats30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/podman_create.bats b/test/podman_create.bats
new file mode 100644
index 000000000..a9f70cdfa
--- /dev/null
+++ b/test/podman_create.bats
@@ -0,0 +1,30 @@
+#!/usr/bin/env bats
+
+load helpers
+
+function setup() {
+ prepare_network_conf
+ copy_images
+}
+
+function teardown() {
+ cleanup_test
+}
+
+@test "create a container based on local image" {
+ run ${PODMAN_BINARY} ${PODMAN_OPTIONS} create $BB ls
+ echo "$output"
+ [ "$status" -eq 0 ]
+}
+
+@test "create a container based on a remote image" {
+ run ${PODMAN_BINARY} ${PODMAN_OPTIONS} create ${BB_GLIBC} ls
+ echo "$output"
+ [ "$status" -eq 0 ]
+}
+
+@test "ensure short options" {
+ run ${PODMAN_BINARY} ${PODMAN_OPTIONS} create -dt ${BB_GLIBC} ls
+ echo "$output"
+ [ "$status" -eq 0 ]
+}