summaryrefslogtreecommitdiff
path: root/tests/integration_tests/modules/test_puppet.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests/modules/test_puppet.py')
-rw-r--r--tests/integration_tests/modules/test_puppet.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/integration_tests/modules/test_puppet.py b/tests/integration_tests/modules/test_puppet.py
index 1bd9cee4..b8613866 100644
--- a/tests/integration_tests/modules/test_puppet.py
+++ b/tests/integration_tests/modules/test_puppet.py
@@ -17,7 +17,12 @@ def test_puppet_service(client: IntegrationInstance):
"""Basic test that puppet gets installed and runs."""
log = client.read_from_file("/var/log/cloud-init.log")
verify_clean_log(log)
- assert client.execute("systemctl is-active puppet").ok
+ puppet_ok = client.execute("systemctl is-active puppet.service").ok
+ puppet_agent_ok = client.execute(
+ "systemctl is-active puppet-agent.service"
+ ).ok
+ assert True in [puppet_ok, puppet_agent_ok]
+ assert False in [puppet_ok, puppet_agent_ok]
assert "Running command ['puppet', 'agent'" not in log