Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<configuration>
<source>17</source>
<target>17</target>
Expand Down Expand Up @@ -88,13 +89,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>1.20.6</version>
<version>1.21.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.dasniko</groupId>
<artifactId>testcontainers-keycloak</artifactId>
<version>3.2.0</version>
<version>4.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.testcontainers.images.PullPolicy;

import java.io.File;
import java.lang.module.ModuleDescriptor.Version;
import java.util.List;

import static ch.openem.keycloakadminhelperplugin.it.KeyCloakContainer.Distribution.quarkus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class TestConstants {

static final int KEYCLOAK_HTTP_PORT = 8080;
static final int KEYCLOAK_MANAGEMENT_PORT = 9000;

static final String KEYCLOAK_ADMIN_PASS = "admin";
static final String KEYCLOAK_ADMIN_USER = "admin";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.Map;

import static ch.openem.keycloakadminhelperplugin.it.TestConstants.KEYCLOAK_HTTP_PORT;
import static ch.openem.keycloakadminhelperplugin.it.TestConstants.KEYCLOAK_MANAGEMENT_PORT;
import static ch.openem.keycloakadminhelperplugin.it.TestConstants.REALM_TEST;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand All @@ -34,7 +35,8 @@ class WorkflowIT {
private static final Logger LOGGER = LoggerFactory.getLogger(WorkflowIT.class);
@Container
private static final KeycloakContainer KEYCLOAK_CONTAINER = KeyCloakContainer.createContainer()
.withExposedPorts(KEYCLOAK_HTTP_PORT)
.withEnabledMetrics()
.withExposedPorts(KEYCLOAK_HTTP_PORT, KEYCLOAK_MANAGEMENT_PORT)
.withLogConsumer(new Slf4jLogConsumer(LOGGER).withSeparateOutputStreams())
.withRealmImportFile("/realm-integrationtest-old.json")
// .withRealmImportFile("/realm-integrationtest.json") - doesn't start but only contains +adminPermissionsEnabled+policy+permission
Expand Down
Loading