Browse Source

Update to new web endpoint property

pull/323/head
Spencer Gibb 7 years ago
parent
commit
9f3744d1e2
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/endpoint/ServiceRegistryEndpointTests.java
  2. 2
      spring-cloud-context/src/test/java/org/springframework/cloud/context/environment/EnvironmentManagerIntegrationTests.java
  3. 2
      spring-cloud-context/src/test/java/org/springframework/cloud/context/scope/refresh/RefreshEndpointIntegrationTests.java

2
spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/endpoint/ServiceRegistryEndpointTests.java

@ -35,7 +35,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
* @author Spencer Gibb * @author Spencer Gibb
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = ServiceRegistryEndpointTests.TestConfiguration.class, properties = "management.endpoints.web.expose=*") @SpringBootTest(classes = ServiceRegistryEndpointTests.TestConfiguration.class, properties = "management.endpoints.web.exposure.include=*")
public class ServiceRegistryEndpointTests { public class ServiceRegistryEndpointTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); private static final String BASE_PATH = new WebEndpointProperties().getBasePath();

2
spring-cloud-context/src/test/java/org/springframework/cloud/context/environment/EnvironmentManagerIntegrationTests.java

@ -49,7 +49,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = TestConfiguration.class, properties = "management.endpoints.web.expose=*") @SpringBootTest(classes = TestConfiguration.class, properties = "management.endpoints.web.exposure.include=*")
public class EnvironmentManagerIntegrationTests { public class EnvironmentManagerIntegrationTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); private static final String BASE_PATH = new WebEndpointProperties().getBasePath();

2
spring-cloud-context/src/test/java/org/springframework/cloud/context/scope/refresh/RefreshEndpointIntegrationTests.java

@ -49,7 +49,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
* *
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = ClientApp.class, properties = "management.endpoints.web.expose=*", webEnvironment = RANDOM_PORT) @SpringBootTest(classes = ClientApp.class, properties = "management.endpoints.web.exposure.include=*", webEnvironment = RANDOM_PORT)
public class RefreshEndpointIntegrationTests { public class RefreshEndpointIntegrationTests {
private static final String BASE_PATH = new WebEndpointProperties().getBasePath(); private static final String BASE_PATH = new WebEndpointProperties().getBasePath();

Loading…
Cancel
Save