use of io.confluent.ksql.rest.entity.HealthCheckResponse in project ksql by confluentinc.
the class HealthCheckResourceFunctionalTest method shouldCheckHealth.
@Test
public void shouldCheckHealth() {
// When:
final HealthCheckResponse response = RestIntegrationTestUtil.checkServerHealth(REST_APP);
// Then:
assertThat("server should be healthy", response.getIsHealthy());
assertThat(response.getDetails().get(KAFKA_CHECK_NAME).getIsHealthy(), is(true));
assertThat(response.getDetails().get(METASTORE_CHECK_NAME).getIsHealthy(), is(true));
assertThat(response.getDetails().get(COMMAND_RUNNER_CHECK_NAME).getIsHealthy(), is(true));
}
Aggregations