update to new web endpoint property
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user