Skip to content

Commit 02058c4

Browse files
committed
feat(LDAP): add integration tests for LDAP Authorization
closes kafbat#782
1 parent 26291e9 commit 02058c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: api/src/test/java/io/kafbat/ui/OpenLDAPIntegrationTest.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
package io.kafbat.ui;
22

3+
import static io.kafbat.ui.AbstractIntegrationTest.LOCAL;
4+
import static org.junit.jupiter.api.Assertions.assertEquals;
5+
import static org.junit.jupiter.api.Assertions.assertFalse;
6+
import static org.junit.jupiter.api.Assertions.assertNotNull;
7+
import static org.junit.jupiter.api.Assertions.assertTrue;
8+
39
import io.kafbat.ui.container.OpenLdapContainer;
410
import io.kafbat.ui.model.AuthenticationInfoDTO;
511
import io.kafbat.ui.model.ResourceTypeDTO;
612
import io.kafbat.ui.model.UserPermissionDTO;
13+
import java.util.List;
14+
import java.util.Objects;
715
import org.junit.jupiter.api.AfterAll;
816
import org.junit.jupiter.api.BeforeAll;
917
import org.junit.jupiter.api.Test;
@@ -19,14 +27,6 @@
1927
import org.springframework.test.context.DynamicPropertySource;
2028
import org.springframework.test.web.reactive.server.WebTestClient;
2129
import org.springframework.web.reactive.function.BodyInserters;
22-
import java.util.List;
23-
import java.util.Objects;
24-
25-
import static io.kafbat.ui.AbstractIntegrationTest.LOCAL;
26-
import static org.junit.jupiter.api.Assertions.assertEquals;
27-
import static org.junit.jupiter.api.Assertions.assertFalse;
28-
import static org.junit.jupiter.api.Assertions.assertNotNull;
29-
import static org.junit.jupiter.api.Assertions.assertTrue;
3030

3131
@SpringBootTest
3232
@ActiveProfiles("rbac-ldap")

0 commit comments

Comments
 (0)