Repository navigation
Move the rest of TestingResource methods to a utils-shared helper class (2/2) - #49241
Conversation
d11f301 to
5695c2b
Compare
There was a problem hiding this comment.
what is the reason, you are adding prepareGroupsLDAPTest into LDAPHelper and then Roles and similars to particular test classes?
| @@ -78,4 +78,5 @@ public static RunOnServer clear() { | |||
| System.clearProperty(FILE); | |||
| }; | |||
| } | |||
|
|
|||
There was a problem hiding this comment.
probably accidently added to the commit. Should I remove it?
There was a problem hiding this comment.
fixed in the last commit
| @@ -61,8 +62,8 @@ public void importTestRealms() { | |||
|
|
|||
| // add an LDAP provider with a group mapper | |||
| Map<String, String> cfg = ldapRule.getConfig(); | |||
| testingClient.testing().ldap(TEST_REALM_NAME).createLDAPProvider(cfg, true); | |||
| testingClient.testing().ldap(TEST_REALM_NAME).prepareGroupsLDAPTest(); | |||
| runOnServer.fetchString(LdapHelper.createLDAPProvider(cfg, true)); | |||
There was a problem hiding this comment.
No, because createLDAPProvider returns a FetchOnServer functional interface and run accepts RunOnServer.
In other usages of this helper method, the resulting String is used; in this instance, it is ignored.
|
5695c2b to
979b442
Compare
…ss (2/2) Closes: keycloak#48942 Signed-off-by: Simon Vacek <simonvacky@email.cz>
Signed-off-by: Simon Vacek <simonvacky@email.cz>
979b442 to
5cd1588
Compare
…ss (2/2) (keycloak#49241) * Move the rest of TestingResource methods to a utils-shared helper class (2/2) Closes: keycloak#48942 Signed-off-by: Simon Vacek <simonvacky@email.cz> * review fix Signed-off-by: Simon Vacek <simonvacky@email.cz> --------- Signed-off-by: Simon Vacek <simonvacky@email.cz>
Closes: #48942