topologies: add keycloak topology#183
Conversation
a857af7 to
6cdd2f6
Compare
|
Hi, as you can see I added the Thanks. bye, |
@pbrezina would it be better to move KeycloakIdPClient from the role to a utils class for this? Would that allow us to then reference it from both the Keycloak role and the topology controller without the duplication of code? |
Yes, converting it to MultihostReentrantUtility would allow you to share the code between roles and hosts. That would be cleanest solution, but maybe an overkill for this use case. You can implement this functionality on the host object and then call this from the KeycloakIdPClient. That might be easier since you don't need the utility setup and teardown code. |
|
@sumit-bose I am approving this but if you want to remove the duplications see the suggestions in my previous comment. |
|
Hi, thank you for the suggestions, but if I see it correctly either way would also require to duplicate some parts of bye, |
spoore1
left a comment
There was a problem hiding this comment.
LGTM. Tested with tests from PRs #7871 and #7937:
tests/test_idp.py::test_idp__user (keycloak) PASSED
tests/test_idp.py::test_idp__group (keycloak) PASSED
tests/test_idp.py::test_idp__user_groups (keycloak) PASSED
tests/test_idp.py::test_idp__group_members (keycloak) PASSED
tests/test_oidc_child.py::test_oidc_child__get_user (keycloak) PASSED
tests/test_oidc_child.py::test_oidc_child__get_group (keycloak) PASSED
tests/test_oidc_child.py::test_oidc_child__get_user_groups (keycloak) PASSED
tests/test_oidc_child.py::test_oidc_child__get_group_members (keycloak) PASSED
================================================================================== 8 passed, 722 deselected in 452.17s (0:07:32) ==================================================================================
No description provided.