|
|
@ -558,6 +558,17 @@ public class EndpointWebMvcAutoConfigurationTests {
|
|
|
|
this.applicationContext.refresh();
|
|
|
|
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
|
|
|
|
@Test
|
|
|
|
public void managementServerCanDisableSslWhenUsingADifferentPort() throws Exception {
|
|
|
|
public void managementServerCanDisableSslWhenUsingADifferentPort() throws Exception {
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.applicationContext,
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.applicationContext,
|
|
|
|