update to new web endpoint property

This commit is contained in:
Spencer Gibb
2018-02-12 12:24:13 -05:00
parent 2bfdc5a9f7
commit df80d91a1c
4 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ import static org.springframework.cloud.zookeeper.discovery.test.TestRibbonClien
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ZookeeperDiscoveryHealthIndicatorWithNestedStructureTests.Config.class,
properties = "management.endpoints.web.expose=*",
properties = "management.endpoints.web.exposure.include=*",
webEnvironment = RANDOM_PORT)
@ActiveProfiles("nestedstructure")
public class ZookeeperDiscoveryHealthIndicatorWithNestedStructureTests {

View File

@@ -45,7 +45,7 @@ import static org.springframework.cloud.zookeeper.discovery.test.TestRibbonClien
properties = {
"feign.hystrix.enabled=false",
"spring.cloud.zookeeper.discovery.uri-spec={scheme}://{address}:{port}/contextPath",
"management.endpoints.web.expose=*"
"management.endpoints.web.exposure.include=*"
},
webEnvironment = RANDOM_PORT)
@ActiveProfiles("ribbon")

View File

@@ -27,7 +27,7 @@ import static org.springframework.cloud.zookeeper.discovery.test.TestRibbonClien
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ZookeeperDiscoveryWithDependenciesIntegrationTests.Config.class,
properties = {"feign.hystrix.enabled=false", "debug=true", "management.endpoints.web.expose=*"},
properties = {"feign.hystrix.enabled=false", "debug=true", "management.endpoints.web.exposure.include=*"},
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("dependencies")
public class ZookeeperDiscoveryWithDependenciesIntegrationTests {

View File

@@ -37,7 +37,7 @@ public class SampleApplicationTests {
ConfigurableApplicationContext context = new SpringApplicationBuilder(SampleZookeeperApplication.class).run(
"--server.port="+port,
"--management.endpoints.web.expose=*",
"--management.endpoints.web.exposure.include=*",
"--spring.cloud.zookeeper.connect-string=localhost:" + zkPort);
ResponseEntity<String> response = new TestRestTemplate().getForEntity("http://localhost:"+port+"/hi", String.class);