Skip to content

Commit

Permalink
feat : apply missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 18, 2024
1 parent 4321409 commit fc94d07
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions inventory-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<java.version>21</java.version>
<spring-cloud.version>2024.0.0-M2</spring-cloud.version>
<springdoc-openapi.version>2.6.0</springdoc-openapi.version>
<spring-cloud.version>2024.0.0-RC1</spring-cloud.version>
<springdoc-openapi.version>2.7.0-RC1</springdoc-openapi.version>

<org.mapstruct.version>1.6.3</org.mapstruct.version>
<testcontainers-jooq-codegen-maven-plugin.version>0.0.4</testcontainers-jooq-codegen-maven-plugin.version>
Expand Down
5 changes: 5 additions & 0 deletions inventory-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ spring:
threads:
virtual:
enabled: true
http:
client:
factory: jdk
main:
web-application-type: servlet
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Licensed under MIT License Copyright (c) 2023-2024 Raja Kolli.

package com.example.inventoryservice;

import com.example.inventoryservice.utils.AppConstants;
import com.example.inventoryservice.config.NonSQLContainersConfig;
import com.example.inventoryservice.config.SQLContainersConfig;
import com.example.inventoryservice.utils.AppConstants;
import org.springframework.boot.SpringApplication;

public class TestInventoryApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ GenericContainer<?> zipkContainer() {
@ServiceConnection
KafkaContainer kafkaContainer() {
return new KafkaContainer(DockerImageName.parse("apache/kafka-native").withTag("3.8.1"))
.withReuse(true)
.waitingFor(Wait.forLogMessage(".*Kafka Server started.*\\n", 1));
.withReuse(true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class SQLContainersConfig {
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:17-alpine"))
.withReuse(true)
.withCommand("postgres -c fsync=off") // Optimize for tests
.withTmpFs(Collections.singletonMap("/var/lib/postgresql/data", "rw"));
}
}

0 comments on commit fc94d07

Please sign in to comment.