Skip to content

Commit 2c9236c

Browse files
authored
Merge pull request #8 from cisagov/testing/uncomment-assertion
Uncomment assertion
2 parents 00700d3 + b780cad commit 2c9236c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

molecule/default/tests/test_default_basic.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ def test_packages(host):
2424
def 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."

requirements-test.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ ansible-core>=2.16.7
3030
molecule>=5.0.1
3131
molecule-plugins[docker]
3232
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

0 commit comments

Comments
 (0)