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/config.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/config.yaml')
| -rw-r--r-- | tests/roles/cli/tasks/config.yaml | 50 |
1 files changed, 41 insertions, 9 deletions
diff --git a/tests/roles/cli/tasks/config.yaml b/tests/roles/cli/tasks/config.yaml index 91e8bc3..d1e88bd 100644 --- a/tests/roles/cli/tasks/config.yaml +++ b/tests/roles/cli/tasks/config.yaml @@ -1,16 +1,48 @@ --- +- name: buildah config annotation + command: buildah config --annotation annotation=test-annotation nginxc + +- name: buildah config arch + command: buildah config --arch x86_64 nginxc + +- name: buildah config author + command: buildah config --author "Guohua Ouyang" nginxc + +- name: buildah config cmd + command: buildah config --cmd "nginx -g 'daemon off;'" nginxc + +- name: buildah config createdby + command: buildah config --created-by "manualcreated" nginxc + +- name: buildah config label + command: buildah config --label label=test-label nginxc + +- name: buildah config port + command: buildah config --port 8001 nginxc + +- name: buildah config user + command: buildah config --user www-data nginxc + - name: buildah config workingdir command: buildah config --workingdir /opt nginxc -- name: get buildah config workingdir - command: buildah run nginxc "pwd" - register: checkworkingdir - failed_when: "'/opt' not in checkworkingdir.stdout" - - name: buildah config env command: buildah config --env foo=bar nginxc -- name: get buildah config env - command: buildah run nginxc env - register: env - failed_when: "'foo=bar' not in env.stdout" +- name: buildah config os + command: buildah config --os unix nginxc + +- name: verify the container after config + shell: buildah inspect nginxc | grep '{{ item }}' + with_items: + - test-annotation + - x86_64 + - test-label + - Ouyang + - daemon off + - manualcreated + - 8001 + - www-data + - opt + - foo=bar + - unix |
