-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TESTS: Add access control simple filter tests #7874
Conversation
d9779d9
to
7859d54
Compare
Hi, maybe, it would be wort to rename the file to |
7859d54
to
416f529
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove quite a few lines and simplify the test, other than those changes, it looks good, thank you Andre.
|
||
client.sssd.start(service_user=sssd_service_user) | ||
|
||
assert client.auth.parametrize(method).password("user1", "Secret123"), "User login!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client.auth.ssh.password(...)
The second part, is the stderr message, if the assertion fails. Should be the negation, ```User cannot login!"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So all the messages afterwards the assertion should be the opposite? Is that right? In this case I will change all of them, because I understood it wrong ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked more this style I implemented in the last test case:
assert client.auth.ssh.password("user2", "Secret123"), "User2 should be able to log in!"
assert not client.auth.ssh.password("user3", "Secret123"), "User3 should NOT be able to log in!"
wdyt?
416f529
to
208421e
Compare
I was pushing the wrong branch ¬¬ changes should be applied now |
Added 3 tests for access control simple filter using the new testing framework
208421e
to
43f3c27
Compare
I did a mistake with branches and renamed, thus the PR was closed :( Let's keep the discussion here #7882 |
Added 3 tests for access control simple filter using the new testing framework