refactor(infra-monitoring)
refactor(infra-gateway)
This commit is contained in:
+2
@@ -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
|
||||
|
||||
|
||||
+24
@@ -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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user