Code Review
/
oom
/
offline-installer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[MOLECULE] Remove separate helm cases from 'application' role verifier
[oom/offline-installer.git]
/
ansible
/
roles
/
application
/
molecule
/
default
/
tests
/
test_default.py
diff --git
a/ansible/roles/application/molecule/default/tests/test_default.py
b/ansible/roles/application/molecule/default/tests/test_default.py
index
22298e3
..
18dc031
100644
(file)
--- a/
ansible/roles/application/molecule/default/tests/test_default.py
+++ b/
ansible/roles/application/molecule/default/tests/test_default.py
@@
-7,23
+7,22
@@
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_helm_commands(host):
def test_helm_commands(host):
- fc = host.file('/tmp/helm_simu_output').content_string
- expected_content = """home
-init --upgrade --skip-refresh
-version --tiller-connection-timeout 10
-repo list
-serve
+ fc = host.file('/tmp/helm_simu_output').content_string.strip()
+ expected_content = """env
repo list
repo add local http://127.0.0.1:8879
repo list
repo add local http://127.0.0.1:8879
-
install --name
moleculetestapp local/moleculetestapp --namespace \
+
deploy
moleculetestapp local/moleculetestapp --namespace \
moleculetestapp -f /opt/moleculetestapp/helm_charts/onap/resources/\
overrides/onap-all.yaml -f /opt/moleculetestapp/override.yaml \
moleculetestapp -f /opt/moleculetestapp/helm_charts/onap/resources/\
overrides/onap-all.yaml -f /opt/moleculetestapp/override.yaml \
---timeout 1800"""
+--timeout 1800s"""
+ expected_plugin_path = '/root/.local/share/helm/plugins/deploy/' +\
+ 'deploy.sh'
assert fc == expected_content
assert fc == expected_content
+ assert host.file(expected_plugin_path).exists
def test_helm_override_file(host):
def test_helm_override_file(host):
- fc = host.file('/opt/moleculetestapp/override.yaml').content_string
+ fc = host.file('/opt/moleculetestapp/override.yaml').content_string
.strip()
expected_content = """global:
cacert: 'this is dummy server certificate value
expected_content = """global:
cacert: 'this is dummy server certificate value