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

OZG-3961 cleanup unused test

parent 0b001ad7
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,6 @@ import static org.mockito.Mockito.*; ...@@ -30,7 +30,6 @@ import static org.mockito.Mockito.*;
import java.util.Optional; import java.util.Optional;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
...@@ -97,21 +96,6 @@ class KeycloakUserReconcilerTest { ...@@ -97,21 +96,6 @@ class KeycloakUserReconcilerTest {
} }
} }
@Nested
@Disabled("ErrorStatusHandler erstmal deaktiviert weil der nicht funktioniert hat")
class TestErrorStatusUpdateControl {
@Test
void shouldSetErrorStatusOnException() {
OzgKeycloakUser user = OzgKeycloakUserTestFactory.create();
doThrow(new RuntimeException()).when(service).createOrUpdateUser(any(), any());
reconciler.reconcile(user, null);
assertThat(user.getStatus().getStatus()).isEqualTo(OzgCustomResourceStatus.ERROR);
}
}
@DisplayName("Cleanup") @DisplayName("Cleanup")
@Nested @Nested
class TestCleanup { class TestCleanup {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment