|
|
|
@ -561,6 +561,17 @@ public class EndpointWebMvcAutoConfigurationTests {
|
|
|
|
|
this.applicationContext.refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void samePortCanBeUsedWhenManagementSslIsExplicitlyDisabled()
|
|
|
|
|
throws Exception {
|
|
|
|
|
TestPropertyValues.of("management.ssl.enabled=false")
|
|
|
|
|
.applyTo(this.applicationContext);
|
|
|
|
|
this.applicationContext.register(RootConfig.class, EndpointConfig.class,
|
|
|
|
|
BaseConfiguration.class, EndpointWebMvcAutoConfiguration.class,
|
|
|
|
|
ErrorMvcAutoConfiguration.class);
|
|
|
|
|
this.applicationContext.refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void managementServerCanDisableSslWhenUsingADifferentPort() throws Exception {
|
|
|
|
|
TestPropertyValues.of("management.port=" + ports.get().management,
|
|
|
|
|