summaryrefslogtreecommitdiffstats
path: root/ansible/roles/chartmuseum
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-01-26 15:31:11 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-01-26 15:31:11 +0100
commite16c7beac85b9a4f04a0b3b8a91ff872d8e99ae5 (patch)
tree329f0c593f2cf128e0a5b113476e0a54990aac01 /ansible/roles/chartmuseum
parent283ecef8914e6397b4a8b88e4a31b2908d4aa078 (diff)
Add Molecule test scenario to verify 'chartmuseum' role on Ubuntu
Change-Id: Ic3f78a9fd46bef8e3e2138d9c04850db00651b63 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/chartmuseum')
-rw-r--r--ansible/roles/chartmuseum/molecule/ubuntu/molecule.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/ansible/roles/chartmuseum/molecule/ubuntu/molecule.yml b/ansible/roles/chartmuseum/molecule/ubuntu/molecule.yml
new file mode 100644
index 00000000..d2851ccf
--- /dev/null
+++ b/ansible/roles/chartmuseum/molecule/ubuntu/molecule.yml
@@ -0,0 +1,38 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint:
+ name: yamllint
+platforms:
+ - name: instance-ubuntu-chartmuseum
+ image: ubuntu:18.04
+ dockerfile: ../default/Dockerfile.j2
+ groups:
+ - infrastructure
+provisioner:
+ name: ansible
+ lint:
+ name: ansible-lint
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+ inventory:
+ group_vars:
+ all:
+ app_name: moleculetestapp
+ app_data_path: "/opt/{{ app_name }}"
+ helm_bin_dir: /usr/local/bin
+ chartmuseum_storage_dir: "/opt/{{ app_name }}/chartmuseum"
+ chartmuseum_port: "1234"
+ playbooks:
+ prepare: ../default/prepare.yml
+ converge: ../default/playbook.yml
+scenario:
+ name: ubuntu
+verifier:
+ name: testinfra
+ lint:
+ name: flake8
+ directory: ../default/tests/