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: 5 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ LB_CHANGELOG=your_changelog_file.yaml
LB_OUTPUT_CHANGELOG=your_output_changelog.yaml
LB_DRIVER=your_jdbc_driver_class
LB_SCHEMA=your_database_schema

#H2 configuration
Comment thread
MayuriXx marked this conversation as resolved.
H2_URL=your_h2_url
H2_USERNAME=your_h2_username
H2_PASSWORD=your_h2_password
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '3.8'

services:
postgres:
image: postgres:17.9-alpine
image: postgres:17-alpine
Comment thread
MayuriXx marked this conversation as resolved.
container_name: xpeho_postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</scm>
<properties>
<java.version>25</java.version>
<testcontainers.version>1.19.8</testcontainers.version>
<testcontainers.version>2.0.4</testcontainers.version>
<skipDocker>false</skipDocker>
<sonar.coverage.exclusions>**/*Application.java</sonar.coverage.exclusions>
<sonar.test.exclusions>**/feature/SpringIntegrationTest.java</sonar.test.exclusions>
Expand Down Expand Up @@ -137,12 +137,12 @@
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<artifactId>testcontainers-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
Comment thread
MayuriXx marked this conversation as resolved.
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<artifactId>testcontainers-postgresql</artifactId>
<scope>test</scope>
</dependency>
Comment thread
MayuriXx marked this conversation as resolved.
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@
import org.springframework.boot.resttestclient.TestRestTemplate;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.ActiveProfiles;
import org.testcontainers.containers.PostgreSQLContainer;

import org.testcontainers.postgresql.PostgreSQLContainer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;

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

@Testcontainers
@AutoConfigureTestRestTemplate
@ActiveProfiles("test")
@SpringBootTest(
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = {
Expand All @@ -34,7 +33,7 @@ class UserGetByIdContainerTest {

@Container
@ServiceConnection
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16-alpine");
static PostgreSQLContainer postgres = new PostgreSQLContainer("postgres:17-alpine");

@Autowired
private TestRestTemplate restTemplate;
Expand Down
Loading