Skip to content

Tests: Add a new user with a valid existing group as primary#1591

Open
aborah-sudo wants to merge 1 commit intoshadow-maint:masterfrom
aborah-sudo:useradd_4
Open

Tests: Add a new user with a valid existing group as primary#1591
aborah-sudo wants to merge 1 commit intoshadow-maint:masterfrom
aborah-sudo:useradd_4

Conversation

@aborah-sudo
Copy link
Contributor

Add a new user with a valid existing group as primary with option -g

Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

If I'm not mistaken this test already exists in bash intests/usertools/01/08_useradd_named_primary_group.test. Make sure to reference it in the commit message.

In addition, make sure to follow the accepted wording for the docstring

:steps:
1. Create a group
2. Create user with that group as primary
3. Check user created successfully
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd use Check passwd entry instead

Comment on lines +370 to +371
1. Create a group
2. Create user with that group as primary
Copy link
Collaborator

Choose a reason for hiding this comment

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

You are missing a step in the middle: Check group entry and Group attributes are correct in expectedresults

This is the transformation to Python of the test located in
`tests/usertools/01/08_useradd_named_primary_group.test`, which checks that `useradd` can add a new user with a valid existing group as primary
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.

2 participants