-
Notifications
You must be signed in to change notification settings - Fork 271
Add GDM Smartcard tests #8216
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
Add GDM Smartcard tests #8216
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 new GDM smartcard tests. The changes include updating a test dependency and adding a new test file. My review has identified a critical issue with the dependency change, which points to a personal fork and should be reverted before merging. Additionally, I've found several uses of time.sleep() in the new tests, which can lead to test flakiness and should be replaced with more robust waiting mechanisms.
15a30c4 to
0cef101
Compare
ikerexxe
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.
I just took a first glance at this proposal and I'm missing several things:
- Docstring with title, description and test steps is missing.
- Tests only run in IPA environment. Should they also target other environments?
- Related to the previous one,
client_setup_for_smartcard()seems to be for all providers but as I mentioned before tests only cover IPA. In addition, with the current implementationenroll_smartcard()only works with IPA provider
Currently, IPA is all that the test framework can support for smart card testing. We'll expand these when more options are supported in the framework. With that said, I'll review the helper functions closer to try to make them forward compatible if possible. As for the docstrings, I'll update asap. |
90b1f3f to
2a0ef6b
Compare
ikerexxe
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.
As a general note, I'm missing the most basic smartcard test, where the user is able to login with the correct PIN. I'm telling you this because if test_gdm__smartcard_login_with_certs_and_passkey fails we don't know if it's because smartcard failed or it was passkey.
In addition, commit 3 (Tests: rename and update test_gdm to xidp) doesn't contain the changes specified in the commit message, they are totally unrelated. I don't know if you want to keep this commit, but if you do make sure to change the message or the content.
2a0ef6b to
a15f51c
Compare
ikerexxe
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.
Some minor comments inline
a15f51c to
550c9d6
Compare
|
The code changes look good to me, but I will refrain from approving them until the framework changes are merged. By the way, is there any open PR for the framework changes? |
madhuriupadhye
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.
see inline
550c9d6 to
1f6b438
Compare
1f6b438 to
74ee50a
Compare
@ikerexxe Here are the related PRs (including the framework one): |
f90bf07 to
f8399a4
Compare
f8399a4 to
01681ac
Compare
01681ac to
1633dde
Compare
ikerexxe
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.
Some minor comments inline. I specially like that you removed the time dependency for the passkey tests. That should make the tests more stable.
fd0df2b to
3566707
Compare
ikerexxe
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! Thank you for taking the feedback into consideration
madhuriupadhye
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.
3566707 to
15d5df0
Compare
Also removing unused GenericProvider references and update some docstrings.
Renaming test_gdm.py to test_gdm_xidp.py to align with the other test_gdm_* test modules. Also adding authselect for with-switchable-auth which is needed to configure the system for GDM to use the new switchable authentication mechanisms.
15d5df0 to
bc4fede
Compare
|
Rebased to pick up changes for black 26.1 update from PR#8379 |
No description provided.