Skip to content

[backport] Tests: Housekeeping and Clean Sweep of Sevice/Logging suite#8609

Merged
danlavu merged 1 commit intoSSSD:sssd-2-9from
jakub-vavra-cz:logging-sssd-2-9
Apr 21, 2026
Merged

[backport] Tests: Housekeeping and Clean Sweep of Sevice/Logging suite#8609
danlavu merged 1 commit intoSSSD:sssd-2-9from
jakub-vavra-cz:logging-sssd-2-9

Conversation

@jakub-vavra-cz
Copy link
Copy Markdown
Contributor

@jakub-vavra-cz jakub-vavra-cz commented Apr 16, 2026

Manual cherry-pick of https://github.com/SSSD/sssd/pull/8512/commits .
Merged tests for sssd offline message in logs and syslog. Split backend offline(unreachable) and dns resolution error scenario. Check that user login does not generate logs on default debug level extended to all providers. Added link to debug level documentation. Dropped references to (now-irrelevant) bugzillas in rewritten tests.

Skipping test_logging__user_logins_are_not_written_to_logs as updating log level of the messages is low priority.

Merged tests for sssd offline message in logs and syslog.
Split backend offline(unreachable) and dns resolution error scenario.
Check that user login does not generate logs on default debug level
extended to all providers. Added link to debug level documentation.
Dropped references to (now-irrelevant) bugzillas in rewritten tests.

Skipping test_logging__user_logins_are_not_written_to_logs
as updating log level of the messages is low priority.
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 and expands the SSSD logging test suite, adding new test cases for runtime debug level adjustments and improving the validation of offline error reporting by using firewall rules to simulate network issues. A review comment points out a potential issue in the offline error test where the removal of a journal clearing step could lead to false positive results by detecting log entries from previous test runs.

Comment thread src/tests/system/tests/test_logging.py
@jakub-vavra-cz jakub-vavra-cz changed the title Tests: Housekeeping and Clean Sweep of Sevice/Logging suite [backport] Tests: Housekeeping and Clean Sweep of Sevice/Logging suite Apr 16, 2026
@jakub-vavra-cz jakub-vavra-cz requested a review from danlavu April 16, 2026 08:25
@jakub-vavra-cz jakub-vavra-cz added Waiting for review Trivial A single reviewer is sufficient to review the Pull Request no-backport This should go to target branch only. labels Apr 16, 2026
@danlavu danlavu merged commit dcc3f9a into SSSD:sssd-2-9 Apr 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-backport This should go to target branch only. Tests Trivial A single reviewer is sufficient to review the Pull Request Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants