Clean LDAP between test method executions
Closes #22602 Signed-off-by: Michal Hajas <mhajas@redhat.com>
This commit is contained in:
parent
07a4bc4db1
commit
94089bd492
1 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,12 @@ public class UserSyncTest extends KeycloakModelTest {
|
|||
|
||||
@Override
|
||||
public void cleanEnvironment(KeycloakSession s) {
|
||||
final RealmModel realm = s.realms().getRealm(realmId);
|
||||
|
||||
ComponentModel ldapModel = LDAPTestUtils.getLdapProviderModel(realm);
|
||||
LDAPStorageProvider ldapFedProvider = LDAPTestUtils.getLdapProvider(s, ldapModel);
|
||||
LDAPTestUtils.removeAllLDAPUsers(ldapFedProvider, realm);
|
||||
|
||||
s.realms().removeRealm(realmId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue