Skip to content

Commit d4d68c0

Browse files
committed
Comment out call to Service.exists
This functionality from pytest-testinfra is currently broken. See pytest-dev/pytest-testinfra#757 for more details. Once pytest-dev/pytest-testinfra#754 has been merged and a new release of pytest-testinfra is created the Service.exists line can be restored.
1 parent 3c4a390 commit d4d68c0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

molecule/default/tests/test_default.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def test_symlink(host):
3232

3333
def test_services(host):
3434
"""Verify that the expected services are present."""
35-
s = host.service("systemd-resolved.service")
36-
assert s.exists, "systemd-resolved.service does not exist."
37-
assert s.is_enabled, "systemd-resolved.service is not enabled."
35+
s = host.service("systemd-resolved")
36+
# This assertion currently fails because of
37+
# pytest-dev/pytest-testinfra#757. Once
38+
# pytest-dev/pytest-testinfra#754 has been merged and a new
39+
# release is created the following line can be uncommented.
40+
# assert s.exists, "systemd-resolved service does not exist."
41+
assert s.is_enabled, "systemd-resolved service is not enabled."
42+
assert s.is_running, "systemd-resolved service is not running."

0 commit comments

Comments
 (0)