Skip to content

test rewrite: legacy intg test_pam_responder.py - first batch - #9004

Merged
danlavu merged 2 commits into
SSSD:masterfrom
danlavu:rewrite-test_pam_responder.py1
Aug 26, 2026
Merged

test rewrite: legacy intg test_pam_responder.py - first batch#9004
danlavu merged 2 commits into
SSSD:masterfrom
danlavu:rewrite-test_pam_responder.py1

Conversation

@danlavu

@danlavu danlavu commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Port sssd/src/tests/intg/test_pam_responder.py to test_smartcard.py, test_authentication.py

  • test_smartcard__login_fails_when_wrong_pin_is_entered
  • test_smartcard__login_fails_when_card_is_not_mapped
  • test_smartcard__cert_auth_limited_to_allowed_pam_services
  • test_smartcard__login_succeeds_when_cert_auth_required
  • test_smartcard__login_fails_when_cert_auth_required_without_card
  • test_authentication__custom_password_prompt_is_shown_at_login

Peeling out the reviewed test cases into it's own PR, from #8873

Depends on the following test-framework PR SSSD/sssd-test-framework#262

Model used: Claude Sonnet 4.6

Comment thread src/tests/system/tests/test_authentication.py Fixed
Comment thread src/tests/system/tests/test_authentication.py Fixed
Comment thread src/tests/system/tests/test_authentication.py Fixed
@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch 2 times, most recently from 5245b03 to a4d6875 Compare July 28, 2026 19:34
@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch 2 times, most recently from 40157ea to cfc5634 Compare August 6, 2026 18:56
Comment thread src/tests/system/tests/test_smartcard.py Outdated
@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch 6 times, most recently from 1ad7a8d to bfccc32 Compare August 13, 2026 19:08
Comment thread src/tests/system/tests/test_smartcard.py
@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch from bfccc32 to 31951eb Compare August 14, 2026 15:40
Comment thread src/tests/intg/test_pam_responder.py
Comment thread src/tests/intg/test_pam_responder.py
@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch from 31951eb to 4e3755e Compare August 19, 2026 13:42

@sumit-bose sumit-bose left a comment

Copy link
Copy Markdown
Contributor

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 tests and all the updates, I have no further comments, ACK.

bye,
Sumit

@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch from 4e3755e to 026d81b Compare August 20, 2026 16:41
@krishnavema
krishnavema self-requested a review August 21, 2026 05:47

@krishnavema krishnavema left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@sumit-bose

Copy link
Copy Markdown
Contributor

Hi,

the review for the PR is done, but I set the Blocked label because I think it would be good to have a green CI system tests run before the tests are merged.

bye,
Sumit

Dan Lavu and others added 2 commits August 26, 2026 11:45
Port sssd/src/tests/intg/test_pam_responder.py to test_smartcard.py,
test_authentication.py

- test_smartcard__login_fails_when_wrong_pin_is_entered
- test_smartcard__login_fails_when_card_is_not_mapped
- test_smartcard__cert_auth_limited_to_allowed_pam_services
- test_smartcard__login_succeeds_when_cert_auth_required
- test_smartcard__login_fails_when_cert_auth_required_without_card
- test_authentication__custom_password_prompt_is_shown_at_login

Peeling out the reviewed test cases into it's own PR, from
SSSD#8873

AI: Claude Sonnet 4.6
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace inline expect script in test_smartcard__unlock_console_with_vlock
with client.auth.su.vlock_smartcard(), moving the logic into the
test framework.

Co-authored-by: Cursor <cursoragent@cursor.com>
@danlavu
danlavu force-pushed the rewrite-test_pam_responder.py1 branch from 026d81b to 24eb932 Compare August 26, 2026 15:45
@danlavu

danlavu commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants