Skip to content
Snippets Groups Projects
Commit 8d0968b4 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-6686 fix realmExists call' (#32) from...

Merge pull request 'OZG-6686 fix realmExists call' (#32) from OZG-6686-realm-delete-problem into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-devops/operator/pulls/32


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents 2713b3d2 dd55522d
No related merge requests found
......@@ -69,7 +69,7 @@ public class KeycloakRealmReconciler implements Reconciler<OzgCloudKeycloakRealm
LOG.info("keep data");
return DeleteControl.defaultDelete();
}
if (!service.realmExists(realm.getMetadata().getName())) {
if (!service.realmExists(realm.getMetadata().getNamespace())) {
return DeleteControl.defaultDelete();
}
return deleteRealm(realm);
......
......@@ -134,7 +134,7 @@ class KeycloakRealmReconcilerTest {
void shouldCallRealmExists() {
reconciler.cleanup(realm, null);
verify(service).realmExists(realm.getMetadata().getName());
verify(service).realmExists(OzgCloudKeycloakRealmTestFactory.METADATA_NAMESPACE);
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment