Skip to content

Commit

Permalink
update dependencies (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro authored Aug 20, 2024
1 parent fbce316 commit 7c70d5c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
<artifactId>devcluster-namespace-activator</artifactId>
<version>2.1</version>
<properties>
<compiler-plugin.version>3.11.0</compiler-plugin.version>
<compiler-plugin.version>3.13.0</compiler-plugin.version>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.7.2</quarkus.platform.version>
<quarkus.platform.version>3.13.2</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.1.2</surefire-plugin.version>
<surefire-plugin.version>3.4.0</surefire-plugin.version>
<testcontainers.version>1.20.1</testcontainers.version>
</properties>
<dependencyManagement>
<dependencies>
Expand All @@ -31,7 +32,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -50,19 +51,19 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.25.3</version>
<version>3.26.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.19.5</version>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mongodb</artifactId>
<version>1.19.3</version>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
quarkus.mongodb.connection-string=mongodb://localhost:27017/keda
baseDomain=.brb.dbildungscloud.dev
quarkus.mongodb.database=keda
quarkus.mongodb.database=keda
giphyapikey=kICM0DRhpfvIcGLhtmCjqEigApnPMLXf
4 changes: 2 additions & 2 deletions src/test/java/de/svs/NamespaceControllerTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.svs;

import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.common.WithTestResource;
import io.quarkus.test.junit.QuarkusMock;
import io.quarkus.test.junit.QuarkusTest;
import io.smallrye.mutiny.Multi;
Expand All @@ -24,7 +24,7 @@
import static org.mockito.Mockito.when;

@QuarkusTest
@QuarkusTestResource(QuarkusMongoDbTestResource.ContainerResource.class)
@WithTestResource(QuarkusMongoDbTestResource.ContainerResource.class)
class NamespaceControllerTest {

@Inject
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/de/svs/NamespaceTest.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.svs;

import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.common.WithTestResource;
import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
@QuarkusTestResource(QuarkusMongoDbTestResource.ContainerResource.class)
@WithTestResource(QuarkusMongoDbTestResource.ContainerResource.class)
class NamespaceTest {

@Test
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/de/svs/QuarkusMongoDbTestResource.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.svs;

import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
import io.quarkus.test.common.WithTestResource;
import org.testcontainers.containers.MongoDBContainer;

import java.util.Collections;
import java.util.Map;

@QuarkusTestResource(QuarkusMongoDbTestResource.ContainerResource.class)
@WithTestResource(QuarkusMongoDbTestResource.ContainerResource.class)
public class QuarkusMongoDbTestResource {
public static class ContainerResource implements QuarkusTestResourceLifecycleManager {
private MongoDBContainer mongoContainer;
Expand Down

0 comments on commit 7c70d5c

Please sign in to comment.