summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/from.yaml
diff options
context:
space:
mode:
authorGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
committerGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
commit619163f3a6ef9c19a644bd314382b0ff6edbddbc (patch)
treeb620ef957f3ccf2de3c3e60a2165244707ccdf0f /tests/roles/cli/tasks/from.yaml
parent4770dbb8bf1af8c6a58c2cc154838bc613d939e4 (diff)
downloadbuildah-master.tar.gz
buildah-master.tar.xz
buildah-master.zip
Sync new tests from upstreamfirstHEADmaster
* the tests is quite old since it moved from upstreamfirst * lots of new cases are added, like option 'run', 'inspect' etc * save log to TEST_ARTIFACTS when the variable is set * always run tests with latest runc built from source Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
Diffstat (limited to 'tests/roles/cli/tasks/from.yaml')
-rw-r--r--tests/roles/cli/tasks/from.yaml27
1 files changed, 19 insertions, 8 deletions
diff --git a/tests/roles/cli/tasks/from.yaml b/tests/roles/cli/tasks/from.yaml
index e694b10..7dac3e7 100644
--- a/tests/roles/cli/tasks/from.yaml
+++ b/tests/roles/cli/tasks/from.yaml
@@ -1,12 +1,23 @@
---
-- name: buildah from pull
- command: buildah from --pull nginx
+- name: remove all containers before pull
+ command: buildah rm --all
-- name: buildah from pull always
- command: buildah from --pull-always nginx
+- name: buildah from without pull
+ command: buildah from --name nginxc docker.io/nginx
-- name: buildah from with name
- command: buildah from --name nginx nginx
+- name: buildah from with pull
+ command: buildah from --pull --name nginxc-2 docker.io/nginx
-- name: clean from testings
- command: buildah delete nginx nginx-working-container nginx-working-container-2
+- name: buildah from with pull always
+ command: buildah from --pull-always docker.io/busybox
+
+- name: remove busybox-working-container
+ command: buildah rm busybox-working-container
+
+- name: remove exist image so it will pull again
+ command: buildah rmi busybox
+
+- name: buildah from with quiet
+ command: buildah from --quiet docker.io/busybox
+ register: quietpull
+ failed_when: '"Getting" in quietpull.stdout'