Merge branch '2.3.x'
Closes gh-22931
This commit is contained in:
@@ -140,6 +140,12 @@ class PrometheusMetricsExportAutoConfigurationTests {
|
||||
.hasBean("customEndpoint").hasSingleBean(PrometheusScrapeEndpoint.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
void pushGatewayIsNotConfiguredWhenEnabledFlagIsNotSet() {
|
||||
this.contextRunner.withUserConfiguration(BaseConfiguration.class)
|
||||
.run((context) -> assertThat(context).doesNotHaveBean(PrometheusPushGatewayManager.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
void withPushGatewayEnabled(CapturedOutput output) {
|
||||
this.contextRunner.withConfiguration(AutoConfigurations.of(ManagementContextAutoConfiguration.class))
|
||||
|
||||
Reference in New Issue
Block a user