X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fapplication%2Fmolecule%2Fdefault%2Ftests%2Ftest_default.py;h=18dc0318cc616ed4f08eccec32dc828486fe3116;hb=refs%2Fchanges%2F61%2F126061%2F1;hp=22298e3a724eb9f343e086d6e111506508943894;hpb=a9fff274a6cb8cc99e0cbb035c89e1d848bf45aa;p=oom%2Foffline-installer.git diff --git a/ansible/roles/application/molecule/default/tests/test_default.py b/ansible/roles/application/molecule/default/tests/test_default.py index 22298e3a..18dc0318 100644 --- 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): - 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 -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 \ ---timeout 1800""" +--timeout 1800s""" + expected_plugin_path = '/root/.local/share/helm/plugins/deploy/' +\ + 'deploy.sh' assert fc == expected_content + assert host.file(expected_plugin_path).exists 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