fix: restore test config (bootstrap token, ingestion, agent-registry) and add @ActiveProfiles
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user