update to new web endpoint property

parent 6d67f1be
...@@ -36,4 +36,4 @@ feignClient: ...@@ -36,4 +36,4 @@ feignClient:
localappName: localapp localappName: localapp
methodLevelRequestMappingPath: /hello2 methodLevelRequestMappingPath: /hello2
myPlaceholderHeader: myPlaceholderHeaderValue myPlaceholderHeader: myPlaceholderHeaderValue
management.endpoints.web.expose: '*' management.endpoints.web.exposure.include: '*'
...@@ -44,7 +44,7 @@ import static org.junit.Assert.assertTrue; ...@@ -44,7 +44,7 @@ import static org.junit.Assert.assertTrue;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = WebEnvironment.RANDOM_PORT, @SpringBootTest(classes = Application.class, webEnvironment = WebEnvironment.RANDOM_PORT,
properties = {"spring.application.name=eureka", "server.servlet.context-path=/context", 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 { public class ApplicationContextTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
...@@ -43,7 +43,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen ...@@ -43,7 +43,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = RANDOM_PORT, properties = { @SpringBootTest(classes = Application.class, webEnvironment = RANDOM_PORT, properties = {
"spring.application.name=eureka", "server.servlet.path=/servlet", "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 { public class ApplicationServletPathTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
...@@ -52,7 +52,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen ...@@ -52,7 +52,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = RANDOM_PORT, properties = { @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 { public class ApplicationTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); private static final String BASE_PATH = new WebEndpointProperties().getBasePath();
......
...@@ -49,7 +49,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen ...@@ -49,7 +49,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = RANDOM_PORT, @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 @DirtiesContext
public class RoutesEndpointIntegrationTests { public class RoutesEndpointIntegrationTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); 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