summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-19 16:52:02 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-22 08:49:24 +0200
commite6abc2f61221ce4f2b357fddfcac8c755249977d (patch)
tree1aa7369bd8ad21c79e1a5df72f0fb08ced856ee7 /ansible
parentf1f28ae67f3f2c056bf987423a26883674cbcb7b (diff)
[MOLECULE] Fix 'application' role run
Add ansible-lint ignore rule to skip warning about unnamed task Fix verifier test Change-Id: Ie75c379b1678a594ad9a3e95442d04fc58939e6e Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/application/molecule/default/tests/test_default.py4
-rw-r--r--ansible/roles/application/tasks/main.yml2
2 files changed, 3 insertions, 3 deletions
diff --git a/ansible/roles/application/molecule/default/tests/test_default.py b/ansible/roles/application/molecule/default/tests/test_default.py
index f57f5afc..116205f0 100644
--- a/ansible/roles/application/molecule/default/tests/test_default.py
+++ b/ansible/roles/application/molecule/default/tests/test_default.py
@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_helm_commands(host):
- fc = host.file('/tmp/helm_simu_output').content_string
+ fc = host.file('/tmp/helm_simu_output').content_string.strip()
helm_release = host.ansible.get_variables()['helm_version']
if helm_release == 'v2':
expected_content = """home
@@ -37,7 +37,7 @@ overrides/onap-all.yaml -f /opt/moleculetestapp/override.yaml \
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
diff --git a/ansible/roles/application/tasks/main.yml b/ansible/roles/application/tasks/main.yml
index 3018e95f..aa24374a 100644
--- a/ansible/roles/application/tasks/main.yml
+++ b/ansible/roles/application/tasks/main.yml
@@ -19,6 +19,6 @@
- include_tasks: post-install.yml
when: install_needed
-- debug:
+- debug: # noqa unnamed-task
msg: "NOTE, nothing done as application Helm charts does not exist!"
when: not install_needed