Skip to content

Test: combine gdm tests into one file#8543

Merged
danlavu merged 1 commit into
SSSD:masterfrom
spoore1:test_gdm_combine
Mar 25, 2026
Merged

Test: combine gdm tests into one file#8543
danlavu merged 1 commit into
SSSD:masterfrom
spoore1:test_gdm_combine

Conversation

@spoore1

@spoore1 spoore1 commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Combining all the GDM tests into a single test module to simplify management of these specific tests.

Marking critical tests as well.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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 consolidates several GDM test files into a single module, which is a good step towards simplifying test management. I've reviewed the changes and found a few opportunities to improve the code quality and maintainability of the new combined test file by addressing some code duplication and a potential cause of test flakiness. My specific comments are in the review.

Comment thread src/tests/system/tests/test_gdm.py Outdated
Comment thread src/tests/system/tests/test_gdm.py
Comment thread src/tests/system/tests/test_gdm.py Outdated
@ikerexxe

Copy link
Copy Markdown
Contributor

The tests look good to me, but I'd recommend you to read Gemini's feedback and check CI failures

@spoore1
spoore1 force-pushed the test_gdm_combine branch 3 times, most recently from d2bd24b to 20ce25c Compare March 23, 2026 13:17

@ikerexxe ikerexxe 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!

@danlavu danlavu 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.

I have questions.

Comment thread src/tests/system/tests/test_gdm.py Outdated
Comment thread src/tests/system/tests/test_gdm.py
Comment thread src/tests/system/tests/test_gdm.py Outdated
Comment thread src/tests/system/tests/test_gdm.py Outdated
Comment thread src/tests/system/tests/test_gdm.py Outdated
Comment thread src/tests/system/tests/test_gdm.py
Comment thread src/tests/system/tests/test_gdm.py Outdated
Comment thread src/tests/system/tests/test_gdm.py Outdated
@pytest.mark.topology(KnownTopology.BareIPA)
@pytest.mark.builtwith(client="gdm")
def test_gdm__smartcard_login_with_certs_and_passkey(client: Client, ipa: IPA):
"""

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.

I think all the test docstrings can be simplified and really just describe what the test is supposed to do at a high level", the detail will be in the code. For this test, I don't understand why we have a second set of key/certs and why that use case is important.

Comment thread src/tests/system/tests/test_gdm.py
Combining all the GDM tests into a single test module to simplify
management of these specific tests.

Refactoring setup helper functions and adding xidp one.

Marking critical tests as well.

Removing some unnecessary comments and adding blank lines to make setup
steps match code.

Renaming some test cases to make purpose more clear.

@danlavu danlavu 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.

After talking to Scott, the docstring updates are out of scope, but everything else looks good, thanks Scott.

@danlavu
danlavu merged commit 17390fd into SSSD:master Mar 25, 2026
43 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants