Skip to content

Commit

Permalink
Comment out call to Service.exists
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsf9k committed Apr 30, 2024
1 parent 5d7f869 commit 7320d1a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ def test_symlink(host):

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

0 comments on commit 7320d1a

Please sign in to comment.