summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/config.yaml
diff options
context:
space:
mode:
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"