upgrade(docker)
This commit is contained in:
@@ -18,6 +18,4 @@ dependencies {
|
||||
// Es enthält Spring Boot Actuator, Micrometer Prometheus und Zipkin Tracing.
|
||||
implementation(libs.bundles.monitoring.client)
|
||||
|
||||
// Stellt alle Test-Abhängigkeiten gebündelt bereit.
|
||||
testImplementation(projects.platform.platformTesting)
|
||||
}
|
||||
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
package at.mocode.infrastructure.monitoring.client
|
||||
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner
|
||||
|
||||
class MonitoringClientAutoConfigurationTest {
|
||||
|
||||
private val contextRunner = ApplicationContextRunner()
|
||||
.withConfiguration(AutoConfigurations.of(MonitoringClientAutoConfiguration::class.java))
|
||||
|
||||
@Test
|
||||
fun `should load monitoring properties correctly into the environment`() {
|
||||
// Arrange
|
||||
val expectedPropertyValue = "true"
|
||||
val propertyKey = "management.observations.http.server.requests.enabled"
|
||||
|
||||
// Act & Assert
|
||||
contextRunner.run { context ->
|
||||
val actualPropertyValue = context.environment.getProperty(propertyKey)
|
||||
assertThat(actualPropertyValue).isEqualTo(expectedPropertyValue)
|
||||
}
|
||||
}
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package at.mocode.infrastructure.monitoring.client
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
|
||||
// Minimaler Test-Application-Context für Library-Tests.
|
||||
@SpringBootApplication
|
||||
class MonitoringClientTestApplication
|
||||
Reference in New Issue
Block a user