summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles
diff options
context:
space:
mode:
authorOstap Batih <o.batih@samsung.com>2022-02-23 11:16:06 +0000
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-03-16 10:10:33 +0000
commit8fc0e0d0ba8e93dfb1d789e5bb143740da3c383f (patch)
tree87f20fc14f39486578abbbe3d5ed666f6fab250f /ansible/test/roles
parenteb8bad1dc2a0228fccca3e843b8f2a1a54a5fdd4 (diff)
[MOLECULE] Configure and write tests for application-overrides role
* configured molecule for application-override role for centos and ubuntu * wrote testinfra test for role Issue-ID: OOM-2889 Signed-off-by: Ostap Batih <o.batih@samsung.com> Change-Id: Iff17b0b9439f3fcb52eb6c4f3829f0c65b55c1a3
Diffstat (limited to 'ansible/test/roles')
-rw-r--r--ansible/test/roles/cleanup-application-override/tasks/main.yml5
-rw-r--r--ansible/test/roles/prepare-application-override/tasks/main.yml13
2 files changed, 18 insertions, 0 deletions
diff --git a/ansible/test/roles/cleanup-application-override/tasks/main.yml b/ansible/test/roles/cleanup-application-override/tasks/main.yml
new file mode 100644
index 00000000..084d7ae0
--- /dev/null
+++ b/ansible/test/roles/cleanup-application-override/tasks/main.yml
@@ -0,0 +1,5 @@
+- name: "Clean application-override mocked certificate directory"
+ file:
+ path: "{{ playbook_dir }}/certs"
+ state: absent
+ delegate_to: localhost
diff --git a/ansible/test/roles/prepare-application-override/tasks/main.yml b/ansible/test/roles/prepare-application-override/tasks/main.yml
new file mode 100644
index 00000000..e601c90a
--- /dev/null
+++ b/ansible/test/roles/prepare-application-override/tasks/main.yml
@@ -0,0 +1,13 @@
+- name: "Create certificate directory"
+ file:
+ path: "{{ playbook_dir }}/certs"
+ state: directory
+ delegate_to: localhost
+
+- name: "Create dummy cert file"
+ copy:
+ content: |
+ this is dummy server certificate value
+ dest: certs/rootCA.crt
+ delegate_to: localhost
+