Tests: Add system tests for groupadd in test_groupadd.py#1655
Conversation
8ba884c to
9cafdaf
Compare
ikerexxe
left a comment
There was a problem hiding this comment.
This has been improved quite a bit. There are still some minor things to improve, but I think we are on the right track
|
Please also check CI failures |
2680fa4 to
4010eba
Compare
ikerexxe
left a comment
There was a problem hiding this comment.
In addition to the inline comments, you should run the linters:
flake8 .
pycodestyle .
isort --check-only .
black --check --diff .
mypy --install-types --non-interactive tests
They will raise a set of improvements that will make your tests run without problems (i.e. missing imports)
This is Python transformation of the test located in `tests/grouptools/groupadd/05_groupadd_set_GID/groupadd.test` which checks that `groupadd` can create group with sepcified GID using -g flag Signed-off-by: Akshay Sakure <asakure@redhat.com>
b175b1f to
4b71f89
Compare
|
Hi @ikerexxe I have made suggested changes & ran the linters as well to confirm if there is any improvement scope, let me know if looks better now. |
ikerexxe
left a comment
There was a problem hiding this comment.
Almost there, just two minor things to improve and we are done
This is Python transformation of the test located in 'tests/grouptools/groupadd/04_groupadd_set_password/groupadd.test' which checks that 'groupadd' can create group with password using -p flag Signed-off-by: Akshay Sakure <asakure@redhat.com>
d9dc7fc to
125cdf9
Compare
|
One last thing to get CI green and merge this PR: |
125cdf9 to
2845d9d
Compare
This is Python transformation of the test located in 'tests/grouptools/groupadd/06_groupadd_-f_add_existing_group/groupadd.test' which checks that 'groupadd' completes successfully while force-creating an existing group using -f flag Signed-off-by: Akshay Sakure <asakure@redhat.com>
2845d9d to
c2a9d70
Compare
ikerexxe
left a comment
There was a problem hiding this comment.
LGTM!
openSUSE infrastructure seems to be down and CI can't install the dependencies. I'm merging anyways since all other runners succeeded
I see, I was wondering why CI is still failing even after making the changes. Thanks! |
Add system tests for groupadd in test_groupadd.py.