refactor(infra-monitoring)

refactor(infra-gateway)
This commit is contained in:
stefan
2025-08-11 14:32:01 +02:00
parent d87a5a4a93
commit 582678e226
16 changed files with 282 additions and 115 deletions
@@ -2,7 +2,9 @@ package at.mocode.infrastructure.monitoring
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import zipkin2.server.internal.EnableZipkinServer
@EnableZipkinServer
@SpringBootApplication
class MonitoringServerApplication
@@ -0,0 +1,24 @@
package at.mocode.infrastructure.monitoring
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
// Startet den ApplicationContext mit Webserver auf zufälligem Port und sicherer Testkonfiguration.
@SpringBootTest(
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = [
"server.port=0",
"management.server.port=0",
"zipkin.storage.type=mem",
"zipkin.self-tracing.enabled=false",
"management.tracing.enabled=false",
"management.zipkin.tracing.endpoint="
]
)
class MonitoringServerApplicationTest {
@Test
fun `context loads successfully`() {
// Test ist bestanden, wenn der Kontext ohne Exception startet.
}
}