diff options
| author | Guohua Ouyang <gouyang@redhat.com> | 2018-04-19 21:43:06 +0800 |
|---|---|---|
| committer | Guohua Ouyang <gouyang@redhat.com> | 2018-04-19 21:43:06 +0800 |
| commit | 619163f3a6ef9c19a644bd314382b0ff6edbddbc (patch) | |
| tree | b620ef957f3ccf2de3c3e60a2165244707ccdf0f /tests/roles/cli/tasks/add.yaml | |
| parent | 4770dbb8bf1af8c6a58c2cc154838bc613d939e4 (diff) | |
| download | buildah-master.tar.gz buildah-master.tar.xz buildah-master.zip | |
* 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/add.yaml')
| -rw-r--r-- | tests/roles/cli/tasks/add.yaml | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/tests/roles/cli/tasks/add.yaml b/tests/roles/cli/tasks/add.yaml index 0bd6498..94ad716 100644 --- a/tests/roles/cli/tasks/add.yaml +++ b/tests/roles/cli/tasks/add.yaml @@ -23,19 +23,36 @@ - name: check buildah add URL to destination command: ls {{mount.stdout}}/home/README.md +- name: create /tmp/buildah/addcopy + file: path=/tmp/buildah/addcopy state=directory + - name: Download buildah README.md get_url: url: https://github.com/projectatomic/buildah/raw/master/README.md - dest: /tmp/buildah/ + dest: /tmp/buildah/addcopy/ - name: buildah add dir - command: buildah add nginxc /tmp + command: buildah add nginxc /tmp/buildah - name: check buildah add dir - command: ls {{mount.stdout}}/buildah/README.md + command: ls {{mount.stdout}}/addcopy/README.md - name: buildah add dir to destination - command: buildah add nginxc /tmp /home + command: buildah add nginxc /tmp/buildah /home - name: check buildah add dir to destination - command: ls {{mount.stdout}}/home/buildah/README.md + command: ls {{mount.stdout}}/home/addcopy/README.md + +- name: buildah add a tarball file + command: buildah add nginxc /var/www/html/bud/Dockerfile.tar.gz /home + +- name: check buildah has added content of tarball to container + command: ls {{mount.stdout}}/home/hello + +- name: buildah add with option chown + command: buildah add --chown bin:bin nginxc /tmp/buildah/bud /home + +- name: check user after add with option chown + raw: buildah run nginxc -- ls -l /home/hello + register: ast + failed_when: '"bin" not in ast.stdout' |
