fix: restore test config (bootstrap token, ingestion, agent-registry) and add @ActiveProfiles

This commit is contained in:
hsiegeln
2026-03-16 19:41:05 +01:00
parent af03ecdf42
commit 39f9925e71
2 changed files with 15 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package com.cameleer3.server.app;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
import org.testcontainers.containers.PostgreSQLContainer;
@@ -11,6 +12,7 @@ import org.testcontainers.junit.jupiter.Testcontainers;
import org.testcontainers.utility.DockerImageName;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("test")
@Testcontainers
public abstract class AbstractPostgresIT {

View File

@@ -1,5 +1,18 @@
spring:
flyway:
enabled: true
opensearch:
url: http://localhost:9200
ingestion:
buffer-capacity: 100
batch-size: 10
flush-interval-ms: 100
agent-registry:
ping-interval-ms: 1000
security:
bootstrap-token: test-bootstrap-token
bootstrap-token-previous: old-bootstrap-token