Tests: Add integration tests validating SSSD socket#8481
Tests: Add integration tests validating SSSD socket#8481alexey-tikhonov merged 1 commit intoSSSD:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new suite of integration tests for SSSD's socket activation feature. The tests validate the lifecycle of individual socket-activated responders and also cover scenarios with a mix of socket-activated and traditional services. The implementation is generally good, but I've identified a high-severity issue in one of the tests where a necessary service restart is missing after configuration changes. This could make the test unreliable. My review includes a specific suggestion to fix this.
d5b5bb0 to
35acf9d
Compare
jakub-vavra-cz
left a comment
There was a problem hiding this comment.
The code looks pretty nice however we need to separate the autofs cases to standalone ones with autofs in the test name. Autofs is not supported in image mode so we are skipping those tests based on name (see: https://gitlab.cee.redhat.com/sssd/sssd-qe/-/blob/main/test-plan/mh_jobs.yaml#L39) and we would be unable to do that here.
The tests that are not using autofs could be probably switched to topology BareLDAP that do not need nfs and kcm so they could be run on smaller footprint.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new set of system tests for SSSD socket activation, covering the lifecycle of socket-activated responders (NSS, PAM, SSH, and Autofs) and scenarios involving a mix of socket-activated and traditional services. The review comments point out that in the test_socket__responders__socket_activation_lifecycle_autofs and test_socket__responders__mixed_socket_and_traditional_services_autofs tests, a user user1 is created but not utilized, suggesting its removal to improve test clarity and efficiency.
|
@danlavu, @jakub-vavra-cz, does this need |
|
Would be great to have a 'low importance' test that would test " |
|
'system tests' fail on all platforms. |
Looks like this wasn't addressed. |
|
F44: F45: I suspect a race condition: a random system NSS lookup triggers start of socket activation after it is enabled and before it is checked. |
817ed4c to
6023fd2
Compare
|
ACK @jakub-vavra-cz, please take a look at the updated version. |
Add integration tests validating SSSD socket activation behavior for individual responders and mixed socket/traditional configurations. Reviewed-by: Alexey Tikhonov <atikhono@redhat.com> Reviewed-by: Jakub Vávra <jvavra@redhat.com>
Add integration tests validating SSSD socket activation behavior for individual responders and mixed socket/traditional configurations.