update to new web endpoint property

parent 6d67f1be
......@@ -36,4 +36,4 @@ feignClient:
localappName: localapp
methodLevelRequestMappingPath: /hello2
myPlaceholderHeader: myPlaceholderHeaderValue
management.endpoints.web.expose: '*'
management.endpoints.web.exposure.include: '*'
......@@ -44,7 +44,7 @@ import static org.junit.Assert.assertTrue;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = WebEnvironment.RANDOM_PORT,
properties = {"spring.application.name=eureka", "server.servlet.context-path=/context",
"management.security.enabled=false", "management.endpoints.web.expose=*" })
"management.security.enabled=false", "management.endpoints.web.exposure.include=*" })
public class ApplicationContextTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
......@@ -43,7 +43,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = RANDOM_PORT, properties = {
"spring.application.name=eureka", "server.servlet.path=/servlet",
"management.security.enabled=false", "management.endpoints.web.expose=*" })
"management.security.enabled=false", "management.endpoints.web.exposure.include=*" })
public class ApplicationServletPathTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
......@@ -52,7 +52,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = RANDOM_PORT, properties = {
"spring.jmx.enabled=true", "management.security.enabled=false", "management.endpoints.web.expose=*" })
"spring.jmx.enabled=true", "management.security.enabled=false", "management.endpoints.web.exposure.include=*" })
public class ApplicationTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
......@@ -49,7 +49,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
*/
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = RANDOM_PORT,
value = {"zuul.routes.sslservice.url=https://localhost:8443", "management.security.enabled=false", "management.endpoints.web.expose=*"})
value = {"zuul.routes.sslservice.url=https://localhost:8443", "management.security.enabled=false", "management.endpoints.web.exposure.include=*"})
@DirtiesContext
public class RoutesEndpointIntegrationTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment