Skip to content

Commit bb53c9e

Browse files
Bump com.github.dasniko:testcontainers-keycloak from 3.2.0 to 4.1.1 (#15)
* Bump com.github.dasniko:testcontainers-keycloak from 3.2.0 to 4.1.1 Bumps [com.github.dasniko:testcontainers-keycloak](https://github.com/dasniko/testcontainers-keycloak) from 3.2.0 to 4.1.1. - [Release notes](https://github.com/dasniko/testcontainers-keycloak/releases) - [Commits](dasniko/testcontainers-keycloak@v3.2.0...v4.1.1) --- updated-dependencies: - dependency-name: com.github.dasniko:testcontainers-keycloak dependency-version: 4.1.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update junit-jupiter to 1.21.4 * Enable metrics during testing This is required by testcontainers-keycloak to reach /health and /metrics in keycloak 25. See https://github.com/dasniko/testcontainers-keycloak?tab=readme-ov-file#management-port --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Spencer Bliven <spencer.bliven@gmail.com>
1 parent c490ae5 commit bb53c9e

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<plugin>
1010
<groupId>org.apache.maven.plugins</groupId>
1111
<artifactId>maven-compiler-plugin</artifactId>
12+
<version>3.15.0</version>
1213
<configuration>
1314
<source>17</source>
1415
<target>17</target>
@@ -88,13 +89,13 @@
8889
<dependency>
8990
<groupId>org.testcontainers</groupId>
9091
<artifactId>junit-jupiter</artifactId>
91-
<version>1.20.6</version>
92+
<version>1.21.4</version>
9293
<scope>test</scope>
9394
</dependency>
9495
<dependency>
9596
<groupId>com.github.dasniko</groupId>
9697
<artifactId>testcontainers-keycloak</artifactId>
97-
<version>3.2.0</version>
98+
<version>4.1.1</version>
9899
<scope>test</scope>
99100
</dependency>
100101
<dependency>

src/test/java/ch/openem/keycloakadminhelperplugin/it/KeyCloakContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.testcontainers.images.PullPolicy;
66

77
import java.io.File;
8+
import java.lang.module.ModuleDescriptor.Version;
89
import java.util.List;
910

1011
import static ch.openem.keycloakadminhelperplugin.it.KeyCloakContainer.Distribution.quarkus;

src/test/java/ch/openem/keycloakadminhelperplugin/it/TestConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
class TestConstants {
66

77
static final int KEYCLOAK_HTTP_PORT = 8080;
8+
static final int KEYCLOAK_MANAGEMENT_PORT = 9000;
89

910
static final String KEYCLOAK_ADMIN_PASS = "admin";
1011
static final String KEYCLOAK_ADMIN_USER = "admin";

src/test/java/ch/openem/keycloakadminhelperplugin/it/WorkflowIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.Map;
2424

2525
import static ch.openem.keycloakadminhelperplugin.it.TestConstants.KEYCLOAK_HTTP_PORT;
26+
import static ch.openem.keycloakadminhelperplugin.it.TestConstants.KEYCLOAK_MANAGEMENT_PORT;
2627
import static ch.openem.keycloakadminhelperplugin.it.TestConstants.REALM_TEST;
2728
import static org.assertj.core.api.Assertions.assertThat;
2829
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -34,7 +35,8 @@ class WorkflowIT {
3435
private static final Logger LOGGER = LoggerFactory.getLogger(WorkflowIT.class);
3536
@Container
3637
private static final KeycloakContainer KEYCLOAK_CONTAINER = KeyCloakContainer.createContainer()
37-
.withExposedPorts(KEYCLOAK_HTTP_PORT)
38+
.withEnabledMetrics()
39+
.withExposedPorts(KEYCLOAK_HTTP_PORT, KEYCLOAK_MANAGEMENT_PORT)
3840
.withLogConsumer(new Slf4jLogConsumer(LOGGER).withSeparateOutputStreams())
3941
.withRealmImportFile("/realm-integrationtest-old.json")
4042
// .withRealmImportFile("/realm-integrationtest.json") - doesn't start but only contains +adminPermissionsEnabled+policy+permission

0 commit comments

Comments
 (0)