fix: Load active profile testcontainers for testing

This commit is contained in:
2025-11-21 10:35:38 +01:00
parent e04b61b726
commit f0a4fd0a1a
2 changed files with 2 additions and 1 deletions

View File

@@ -155,7 +155,6 @@ jobs:
- name: Run tests - name: Run tests
run: ./gradlew test run: ./gradlew test
env: env:
SPRING_PROFILES_ACTIVE: testcontainers
# Fixes Ryuk testcontainers error during test (https://github.com/testcontainers/testcontainers-java/issues/7036) # Fixes Ryuk testcontainers error during test (https://github.com/testcontainers/testcontainers-java/issues/7036)
TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal

View File

@@ -2,8 +2,10 @@ package com.betriebsratkanzlei.legalconsenthub
import org.junit.jupiter.api.Test import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.ActiveProfiles
@SpringBootTest @SpringBootTest
@ActiveProfiles("testcontainers")
class LegalconsenthubApplicationTests { class LegalconsenthubApplicationTests {
@Test @Test
fun contextLoads() { fun contextLoads() {