File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,6 @@ def test_packages(host):
24
24
def test_services (host ):
25
25
"""Verify that the expected services are present."""
26
26
s = host .service ("systemd-resolved" )
27
- # TODO - This assertion currently fails because of
28
- # pytest-dev/pytest-testinfra#757. Once
29
- # pytest-dev/pytest-testinfra#754 has been merged and a new
30
- # release is created the following line can be uncommented.
31
- #
32
- # See #3 for more details.
33
- # assert s.exists, "systemd-resolved service does not exist."
27
+ assert s .exists , "systemd-resolved service does not exist."
34
28
assert s .is_enabled , "systemd-resolved service is not enabled."
35
29
assert s .is_running , "systemd-resolved service is not running."
Original file line number Diff line number Diff line change @@ -30,4 +30,6 @@ ansible-core<2.16.3
30
30
molecule>=5.0.1
31
31
molecule-plugins[docker]
32
32
pre-commit
33
- pytest-testinfra
33
+ # pytest-testinfra contains a fix for SystemdService.exists that is
34
+ # required by this role's Molecule test code.
35
+ pytest-testinfra>=10.1.1
You can’t perform that action at this time.
0 commit comments