Skip to content

Commit

Permalink
test: warning on users/groups test is version specific (#6078)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon authored Mar 10, 2025
1 parent 9547ec1 commit ee7b6aa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/integration_tests/modules/test_users_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,20 @@ def test_nopassword_unlock_warnings(self, class_client):
class_client.execute("passwd -d foobar")
class_client.instance.clean()
class_client.restart()
verify_clean_boot(
class_client,
ignore_warnings=True, # ignore warnings about existing groups
require_warnings=[
warnings = (
[
EXISTING_USER_EMPTY_PASSWD_WARNING.format(
username="nopassworduser"
),
EXISTING_USER_EMPTY_PASSWD_WARNING.format(username="foobar"),
],
]
if CURRENT_RELEASE > NOBLE
else []
)
verify_clean_boot(
class_client,
ignore_warnings=True, # ignore warnings about existing groups
require_warnings=warnings,
)


Expand Down

0 comments on commit ee7b6aa

Please sign in to comment.