diff options
author | 2021-01-26 15:30:12 +0100 | |
---|---|---|
committer | 2021-01-26 15:30:12 +0100 | |
commit | 283ecef8914e6397b4a8b88e4a31b2908d4aa078 (patch) | |
tree | 7e3556d0ee37a8e61569d047a4bae8cdef5b6302 /ansible/roles/chartmuseum/molecule/default/tests | |
parent | 8b2864df4f19783062f3a460227994032d923ff4 (diff) |
Add 'chartmuseum' role
Added 'chartmuseum' role which runs Helm repository server using
chartmuseum.
Change-Id: I8745cd7e602e147fb656297e0afb8e82a5d058ff
Issue-ID: OOM-2665
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/chartmuseum/molecule/default/tests')
-rw-r--r-- | ansible/roles/chartmuseum/molecule/default/tests/test_default.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/chartmuseum/molecule/default/tests/test_default.py b/ansible/roles/chartmuseum/molecule/default/tests/test_default.py new file mode 100644 index 00000000..71d1978d --- /dev/null +++ b/ansible/roles/chartmuseum/molecule/default/tests/test_default.py @@ -0,0 +1,16 @@ +import os + +import testinfra.utils.ansible_runner + +testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( + os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') + + +def test_chartmuseum(host): + ansible_vars = host.ansible.get_variables() + p = host.process.get(comm="chartmuseum") + assert 'chartmuseum --storage local --storage-local-rootdir /opt/' +\ + ansible_vars['app_name'] + '/chartmuseum -port ' +\ + ansible_vars['chartmuseum_port'] in p.args + assert host.file("/opt/" + ansible_vars['app_name'] + + "/chartmuseum").is_directory |