fix: Load active profile testcontainers for testing
This commit is contained in:
@@ -155,7 +155,6 @@ jobs:
|
||||
- name: Run tests
|
||||
run: ./gradlew test
|
||||
env:
|
||||
SPRING_PROFILES_ACTIVE: testcontainers
|
||||
# Fixes Ryuk testcontainers error during test (https://github.com/testcontainers/testcontainers-java/issues/7036)
|
||||
TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal
|
||||
|
||||
|
||||
@@ -2,8 +2,10 @@ package com.betriebsratkanzlei.legalconsenthub
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.test.context.ActiveProfiles
|
||||
|
||||
@SpringBootTest
|
||||
@ActiveProfiles("testcontainers")
|
||||
class LegalconsenthubApplicationTests {
|
||||
@Test
|
||||
fun contextLoads() {
|
||||
|
||||
Reference in New Issue
Block a user