diff options
Diffstat (limited to 'ansible/roles/application/molecule/default/tests/test_default.py')
-rw-r--r-- | ansible/roles/application/molecule/default/tests/test_default.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ansible/roles/application/molecule/default/tests/test_default.py b/ansible/roles/application/molecule/default/tests/test_default.py index 22298e3a..21fc40e4 100644 --- a/ansible/roles/application/molecule/default/tests/test_default.py +++ b/ansible/roles/application/molecule/default/tests/test_default.py @@ -8,7 +8,12 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( def test_helm_commands(host): fc = host.file('/tmp/helm_simu_output').content_string - expected_content = """home + helm_release = host.ansible.get_variables()['helm_version'] + if helm_release == 'v2': + content_str1 = 'home' + elif helm_release == 'v3': + content_str1 = 'env' + expected_content = content_str1 + """ init --upgrade --skip-refresh version --tiller-connection-timeout 10 repo list |