Replacing provider conditionals with set_server method#8081
Replacing provider conditionals with set_server method#8081alexey-tikhonov merged 1 commit intoSSSD:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the failover test by replacing a series of provider-specific conditional blocks with a single call to a new set_server method. This is a good simplification of the test code, making it more readable and maintainable. My review includes a minor style fix to adhere to the project's formatting standards.
jakub-vavra-cz
left a comment
There was a problem hiding this comment.
This is not really readable, I would expect that this sets correct server and adds a backup one, not that is sets server to invalid.
Maybe something like client.sssd.set_invalid_server() would be better.
|
Probably missing branch:sssd-2-9-4. |
thalman
left a comment
There was a problem hiding this comment.
I agree with @jakub-vavra-cz, the naming is misleading.
|
So, only when failover is set to True. We can change this; the method does work as it's named without that switch. Do you want to split this method into two? |
|
@jakub-vavra-cz What do you want me to do to this method? I all know thumbs up emoji is super descriptive. ;) |
I would like to see the set server invalid method at least like this: Posssibly split set_server to two methods. |
|
Ack, I'll split it into two. |
|
I changed the label from |
545fbd2 to
66b648b
Compare
|
Waiting on SSSD/sssd-test-framework#204 |
|
SSSD/sssd-test-framework#204 is merged, re-running tests. |
66b648b to
9634a52
Compare
f5d64b3 to
b854636
Compare
|
@danlavu , please rebase. |
bbcf737 to
474c788
Compare
|
Done. |
|
The file exists in all the below branches, adding matching tags. |
Reviewed-by: Jakub Vávra <jvavra@redhat.com> Reviewed-by: Tomáš Halman <thalman@redhat.com>
474c788 to
e789b06
Compare
No description provided.