Search in sources :

Example 1 with HealthCheck

use of com.influxdb.client.domain.HealthCheck in project nifi-influxdb-bundle by influxdata.

the class AbstractTestStandardInfluxDatabaseService_2 method assertConnectToDatabase.

protected void assertConnectToDatabase() {
    InfluxDBClient client = service.create();
    HealthCheck result = client.health();
    Assert.assertEquals("Unexpected health check: " + result, HealthCheck.StatusEnum.PASS, result.getStatus());
}
Also used : InfluxDBClient(com.influxdb.client.InfluxDBClient) HealthCheck(com.influxdb.client.domain.HealthCheck)

Aggregations

InfluxDBClient (com.influxdb.client.InfluxDBClient)1 HealthCheck (com.influxdb.client.domain.HealthCheck)1