|
|
|
@ -558,6 +558,17 @@ public class EndpointWebMvcAutoConfigurationTests {
|
|
|
|
|
this.applicationContext.refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void samePortCanBeUsedWhenManagementSslIsExplicitlyDisabled()
|
|
|
|
|
throws Exception {
|
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.applicationContext,
|
|
|
|
|
"management.ssl.enabled=false");
|
|
|
|
|
this.applicationContext.register(RootConfig.class, EndpointConfig.class,
|
|
|
|
|
BaseConfiguration.class, EndpointWebMvcAutoConfiguration.class,
|
|
|
|
|
ErrorMvcAutoConfiguration.class, ServerPortConfig.class);
|
|
|
|
|
this.applicationContext.refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void managementServerCanDisableSslWhenUsingADifferentPort() throws Exception {
|
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.applicationContext,
|
|
|
|
|