Skip to content

Conversation

@ikerexxe
Copy link
Collaborator

Add comprehensive test for the groupmod -U option when provided with a
list of users to set group membership. This test verifies:

  • Setting initial group membership with multiple users
  • Proper membership verification in both group and gshadow entries
  • Updating group membership by modifying the user list
  • Correct handling of membership changes in group databases

@alejandro-colomar alejandro-colomar changed the title Test groupmod -u wuth user list Test groupmod -u with user list Dec 26, 2025
Copy link
Member

@hallyn hallyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with alx, a bit more explanation on patch 1 would be appreciated.

@ikerexxe ikerexxe force-pushed the test-groupmod-u branch 2 times, most recently from 6a1426d to 99abadd Compare December 29, 2025 08:50
GShadowEntry administrators and members represent a list of usernames,
not a single string. Thus, set them to `list[str]`. This fixes type
safety and clarifies the expected data structure.

Fixes: 458700b (2025-09-10; "tests/system/framework/: fix Python linter issues")
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
…er list

Add comprehensive test for the groupmod -U option when provided with a
list of users to set group membership. This test verifies:

- Setting initial group membership with multiple users
- Proper membership verification in both group and gshadow entries
- Updating group membership by modifying the user list
- Correct handling of membership changes in group databases

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
@ikerexxe
Copy link
Collaborator Author

I discovered an additional problem with administrators member from GShadowEntry, so I also fixed that one in the first commit. Please review it again before approving.

@hallyn
Copy link
Member

hallyn commented Dec 29, 2025

@alejandro-colomar you ok with merging this before the release, or will that throw a wrench into testing you've already done?

@alejandro-colomar
Copy link
Collaborator

@alejandro-colomar you ok with merging this before the release, or will that throw a wrench into testing you've already done?

I'm okay with it. :)

@alejandro-colomar alejandro-colomar merged commit a0d5a61 into shadow-maint:master Jan 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants