[autobackport: sssd-2-9] tests: Add netgroup offline and nested hierarchy#8303
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds three new system tests for SSSD's netgroup functionality, covering offline access, step-by-step hierarchy removal, and nested modifications. The tests are well-structured and documented. My review focuses on improving the robustness and correctness of the assertions for netgroup members. The current assertions have a few issues: they use a potentially incorrect string format for netgroup triples (with spaces and sometimes missing trailing commas), and they perform member checks in a way that is less robust than a set comparison. I've provided suggestions to use set comparisons on stringified members, which makes the tests more accurate and consistent with other tests in the file.
Add new system tests for netgroup functionality: - test_netgroup__offline: Verify netgroups remain accessible from cache when backend goes offline - test_netgroups__step_by_step_removal: Test removing netgroups from hierarchy and deleting them with proper cache invalidation - test_netgroups__nested_modification: Test that adding/removing members in nested netgroups (3-level deep) propagates correctly through the hierarchy Related: https://fedorahosted.org/sssd/ticket/2841 Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com> Reviewed-by: Jakub Vávra <jvavra@redhat.com> Reviewed-by: Tomáš Halman <thalman@redhat.com> (cherry picked from commit 2b43681)
|
The pull request was accepted by @thalman with the following PR CI status: 🟢 CodeQL (success) There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging. |
4639927 to
7d2e936
Compare
This is an automatic backport of PR#8272 tests: Add netgroup offline and nested hierarchy to branch sssd-2-9, created by @madhuriupadhye.
Please make sure this backport is correct.
Note
The commits were cherry-picked without conflicts.
You can push changes to this pull request
Original commits
2b43681 - tests: Add netgroup offline and nested hierarchy
Backported commits
Original Pull Request Body
Add netgroup tests for offline mode, hierarchy removal, and nested modifications
Add new system tests for netgroup functionality:
Related: https://fedorahosted.org/sssd/ticket/2841