summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/copy.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/copy.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/copy.yaml')
-rw-r--r--tests/roles/cli/tasks/copy.yaml19
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/roles/cli/tasks/copy.yaml b/tests/roles/cli/tasks/copy.yaml
index 3f0d8c5..fd6253a 100644
--- a/tests/roles/cli/tasks/copy.yaml
+++ b/tests/roles/cli/tasks/copy.yaml
@@ -23,19 +23,22 @@
- name: check buildah copy URL to destination
command: ls {{mount.stdout}}/home/README.md
-- name: Download buildah README.md
- get_url:
- url: https://github.com/projectatomic/buildah/raw/master/README.md
- dest: /tmp/buildah/
-
- name: buildah copy dir
command: buildah copy nginxc-2 /tmp/buildah
- name: check buildah copy dir
- command: ls {{mount.stdout}}/README.md
+ command: ls {{mount.stdout}}/addcopy/README.md
- name: buildah copy dir to destination
- command: buildah copy nginxc-2 /tmp /home
+ command: buildah copy nginxc-2 /tmp/buildah /home
- name: check buildah copy dir to destination
- command: ls {{mount.stdout}}/home/buildah/README.md
+ command: ls {{mount.stdout}}/home/addcopy/README.md
+
+- name: buildah copy with option chown
+ command: buildah copy --chown nginx:nginx nginxc-2 /tmp/buildah/bud /home
+
+- name: check user after copy with option chown
+ command: buildah run nginxc-2 -- ls -l /home/hello
+ register: cst
+ failed_when: '"nginx" not in cst.stdout'