File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 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):
2424def test_services (host ):
2525 """Verify that the expected services are present."""
2626 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."
3428 assert s .is_enabled , "systemd-resolved service is not enabled."
3529 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.7
3030molecule>=5.0.1
3131molecule-plugins[docker]
3232pre-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