Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions tests/integration_tests/modules/test_users_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def test_users_groups(self, regex, getent_args, class_client):
)
)

@pytest.mark.skipif(
not IS_UBUNTU,
reason="Warning expectations are Ubuntu-specific",
)
def test_initial_warnings(self, class_client):
"""Check for initial warnings."""
warnings = (
Expand All @@ -134,6 +138,10 @@ def test_user_root_in_secret(self, class_client):
groups = groups_str.split()
assert "secret" in groups

@pytest.mark.skipif(
not IS_UBUNTU,
reason="Password unlock warning behavior differs across distros",
)
def test_nopassword_unlock_warnings(self, class_client):
"""Verify warnings for empty passwords for new and existing users."""
# Fake admin clearing and unlocking and empty unlocked password foobar
Expand Down Expand Up @@ -161,8 +169,8 @@ def test_nopassword_unlock_warnings(self, class_client):

@pytest.mark.user_data(USER_DATA)
@pytest.mark.skipif(
CURRENT_RELEASE < JAMMY,
reason="Requires version of sudo not available in older releases",
IS_UBUNTU and CURRENT_RELEASE < JAMMY,
reason="Requires version of sudo not available in older Ubuntu releases",
)
Comment thread
mmummigatti marked this conversation as resolved.
def test_sudoers_includedir(client: IntegrationInstance):
"""Ensure we don't add additional #includedir to sudoers.
Expand Down
Loading