Set discovery client health indicator description included to false.
see gh-223
This commit is contained in:
@@ -10,8 +10,7 @@ public class DiscoveryClientHealthIndicatorProperties {
|
||||
|
||||
private boolean enabled = true;
|
||||
|
||||
//TODO: change to false in 2.0.0
|
||||
private boolean includeDescription = true;
|
||||
private boolean includeDescription = false;
|
||||
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
|
||||
@@ -44,7 +44,7 @@ import static org.mockito.Mockito.mock;
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = { DiscoveryClientHealthIndicatorTests.Config.class,
|
||||
CommonsClientAutoConfiguration.class }, properties = "spring.cloud.discovery.client.health-indicator.include-description:false")
|
||||
CommonsClientAutoConfiguration.class }, properties = "spring.cloud.discovery.client.health-indicator.include-description:true")
|
||||
public class DiscoveryClientHealthIndicatorTests {
|
||||
|
||||
@Autowired
|
||||
@@ -95,7 +95,7 @@ public class DiscoveryClientHealthIndicatorTests {
|
||||
|
||||
health = this.healthIndicator.health();
|
||||
Status status = assertHealth(health, Status.UP);
|
||||
assertEquals("status description was wrong", "",
|
||||
assertEquals("status description was wrong", "TestDiscoveryClient",
|
||||
status.getDescription());
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ public class DiscoveryCompositeHealthIndicatorTests {
|
||||
|
||||
health = this.healthIndicator.health();
|
||||
Status status = assertHealth(health, Status.UP);
|
||||
assertEquals("status description was wrong", "TestDiscoveryClient",
|
||||
assertEquals("status description was wrong", "",
|
||||
status.getDescription());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user