summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/config.yaml
diff options
context:
space:
mode:
authorYevhenii Shapovalov <yshapova@redhat.com>2017-12-12 13:28:04 +0200
committerYevhenii Shapovalov <yshapova@redhat.com>2017-12-20 18:19:30 +0200
commitdfee2f675f2c43e589eb208a1cb9b39494a3cc22 (patch)
tree85894a09faa016b90ee39c96cc472db623f8831d /tests/roles/cli/tasks/config.yaml
parent7cae8ede6d446bc7824c1f95a5e6cca7a8e1a8e8 (diff)
downloadbuildah-add_tests_f26.tar.gz
buildah-add_tests_f26.tar.xz
buildah-add_tests_f26.zip
Diffstat (limited to 'tests/roles/cli/tasks/config.yaml')
-rw-r--r--tests/roles/cli/tasks/config.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/roles/cli/tasks/config.yaml b/tests/roles/cli/tasks/config.yaml
new file mode 100644
index 0000000..91e8bc3
--- /dev/null
+++ b/tests/roles/cli/tasks/config.yaml
@@ -0,0 +1,16 @@
+---
+- 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"