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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/molecule/default/tests/test_check_prometheus_targets.py b/molecule/default/tests/test_check_prometheus_targets.py
index 9ce1056..ddf3a22 100644
--- a/molecule/default/tests/test_check_prometheus_targets.py
+++ b/molecule/default/tests/test_check_prometheus_targets.py
@@ -7,10 +7,12 @@ def test_check_hosts_added_simple(host):
t1 = host.file('/opt/simple_target1.yml')
t2 = host.file('/opt/simple_target2.yml')
t3 = host.file('/opt/simple_target3.yml')
+ t4 = host.file('/opt/simple_target4.yml')
assert t1.exists
assert t2.exists
assert t3.exists
+ assert t4.exists
assert t1.content_string == \
' - application\n'
@@ -23,6 +25,9 @@ def test_check_hosts_added_simple(host):
assert t3.content_string == \
' - application_AA\n'
+ assert t4.content_string == \
+ ' - exporter_without_id\n'
+
"""
Test prefix functionality
"""