-
Notifications
You must be signed in to change notification settings - Fork 270
Tests:Added IPA Certificate Authority Tests #8159
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
Conversation
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.
Code Review
This pull request adds a new test case to verify smart card authentication with nested 'su' commands for IPA users. The test sets up an IPA user, requests a smart card certificate, configures SSSD for smart card authentication, and then executes nested 'su' commands to validate the authentication flow. The review focuses on ensuring the test case is reliable and correctly validates the intended functionality.
danlavu
left a comment
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.
A few minor details, but overall, it looks very good. Thankyou.
f260683 to
d8ebff0
Compare
danlavu
left a comment
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.
This looks great, thank you. One comment, nothing related to the test code.
danlavu
left a comment
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.
This looks great, thank you. I'm going to approve this since I'm on PTO this week, but you need to add pytest.mark.importance. Critical or High will run with each PRCI run, I think this test case is important enough to execute with each PR.
d8ebff0 to
2a38ec0
Compare
thalman
left a comment
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.
LGTM, thanks Vema
bcf380a to
8714ac2
Compare
f5d64b3 to
b854636
Compare
8714ac2 to
bbedf8b
Compare
sumit-bose
left a comment
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.
Hi,
thank you for the changes, test is still working fine and I have no further comments, ACK.
bye,
Sumit
bbedf8b to
e564d17
Compare
e564d17 to
d4e858d
Compare
|
Hi, I came a across a race-condition. It looks like after re-starting Not sure if a sleep is the best fix here, maybe checking with Since the test always passed in the PR CI it might be possible to delay fixing this and merge the patch as is. But this might be risky and I would suggest to at least add the sleep. What do you think? bye, |
d4e858d to
aacaefd
Compare
This can probably use wait_for_condition() ? |
spoore1
left a comment
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.
One minor update to add a builtwith() marker. This can be added at a later time if this PR is merged before updated.
Reviewed-by: Dan Lavu <dlavu@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Tomáš Halman <thalman@redhat.com>
aacaefd to
7fb3721
Compare
spoore1
left a comment
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.
LGTM
The system should prompt the user for a PIN when attempting to authenticate via smart card. This ensures that the smart card is being used as the primary authentication method.