summaryrefslogtreecommitdiffstats
path: root/ansible/roles/cert-manager/molecule/default
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/cert-manager/molecule/default')
-rw-r--r--ansible/roles/cert-manager/molecule/default/tests/test_default.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/ansible/roles/cert-manager/molecule/default/tests/test_default.py b/ansible/roles/cert-manager/molecule/default/tests/test_default.py
new file mode 100644
index 00000000..2bac6028
--- /dev/null
+++ b/ansible/roles/cert-manager/molecule/default/tests/test_default.py
@@ -0,0 +1,23 @@
+def test_helm_value_file(host):
+ f = host.file('/opt/onap/cert_manager.yaml')
+ assert f.exists
+ assert f.user == 'root'
+ assert f.group == 'root'
+ assert f.content_string.strip() == "installCRDs: true"
+
+
+def test_cmctl(host):
+ f = host.file('/usr/local/bin/cmctl')
+ assert f.exists
+ assert f.user == 'root'
+ assert f.group == 'root'
+ assert host.run('cmctl').rc == 0
+
+
+def test_bash_completion(host):
+ assert host.package("bash-completion").is_installed
+
+
+def test_bash_completion_cmctl(host):
+ f = host.file('/etc/bash_completion.d/cmctl')
+ assert f.exists