Skip to content

refactoring ipa tests for hostname framework changes.#8611

Open
danlavu wants to merge 1 commit intoSSSD:masterfrom
danlavu:tests-ipa-hostname-refactor
Open

refactoring ipa tests for hostname framework changes.#8611
danlavu wants to merge 1 commit intoSSSD:masterfrom
danlavu:tests-ipa-hostname-refactor

Conversation

@danlavu
Copy link
Copy Markdown

@danlavu danlavu commented Apr 16, 2026

No description provided.

@danlavu danlavu added Tests Trivial A single reviewer is sufficient to review the Pull Request backport-to-sssd-2-12 labels Apr 16, 2026
@danlavu
Copy link
Copy Markdown
Author

danlavu commented Apr 16, 2026

CI tests are going to fail, this patch relies on two other patches, which includes container changes.

SSSD/sssd-test-framework#231
SSSD/sssd-ci-containers#163

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a 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 refactors src/tests/system/tests/test_ipa.py to replace hardcoded hostnames and f-string host references with dynamic calls to client.net.hostname() and ipa.server. A bug was identified in the getent lookup within the user override test, where a hyphen was incorrectly added to the username, creating a mismatch with the defined login name and causing the test to fail.

Comment thread src/tests/system/tests/test_ipa.py Outdated
@danlavu danlavu requested a review from madhuriupadhye April 16, 2026 14:21
@danlavu danlavu assigned danlavu and madhuriupadhye and unassigned danlavu Apr 16, 2026
@danlavu danlavu force-pushed the tests-ipa-hostname-refactor branch from 129b22d to aeb69b3 Compare April 16, 2026 14:24
Comment thread src/tests/system/tests/test_ipa.py Outdated
@danlavu danlavu force-pushed the tests-ipa-hostname-refactor branch from aeb69b3 to 5ddfef5 Compare April 16, 2026 19:17
@sssd-bot
Copy link
Copy Markdown
Contributor

The pull request was accepted by @madhuriupadhye with the following PR CI status:


🟢 CodeQL (success)
🟢 osh-diff-scan:fedora-rawhide-x86_64:upstream (success)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-44-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / intgcheck (fedora-45) (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-10) (success)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🟢 ci / system (fedora-44) (success)
🟢 ci / system (fedora-45) (success)
➖ Coverity scan / coverity (skipped)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

@sssd-bot sssd-bot force-pushed the tests-ipa-hostname-refactor branch from 5ddfef5 to e742a9c Compare April 20, 2026 08:03
@danlavu danlavu force-pushed the tests-ipa-hostname-refactor branch from e742a9c to c7326b9 Compare April 21, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accepted backport-to-sssd-2-12 Tests Trivial A single reviewer is sufficient to review the Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants