aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/molecule/default/tests/test_check_prometheus_targets.py
diff options
context:
space:
mode:
Diffstat (limited to 'molecule/default/tests/test_check_prometheus_targets.py')
-rw-r--r--molecule/default/tests/test_check_prometheus_targets.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/molecule/default/tests/test_check_prometheus_targets.py b/molecule/default/tests/test_check_prometheus_targets.py
index ddf3a22..2eeb21b 100644
--- a/molecule/default/tests/test_check_prometheus_targets.py
+++ b/molecule/default/tests/test_check_prometheus_targets.py
@@ -58,12 +58,20 @@ def test_check_hosts_added_hooks(host):
t2 = host.file('/opt/hook1')
t3 = host.file('/opt/hook2')
- assert t1.content_string == \
- ' - application\n'
-
+ assert t1.exists
assert t2.exists
assert t3.exists
+ assert t1.content_string == \
+ ' - application\n' \
+ ' - application2\n' \
+ or t1.content_string == \
+ ' - application2\n' \
+ ' - application\n'
+
+ assert t3.content_string == \
+ 'hello\n' \
+ 'hello\n'
"""
Test lineinfile strategy parameters