use of io.smallrye.reactive.messaging.health.HealthReport in project smallrye-reactive-messaging by smallrye.
the class NoKafkaTest method testOutgoingWithoutKafkaCluster.
@Test
public void testOutgoingWithoutKafkaCluster() {
runApplication(myKafkaSinkConfigWithoutBlockLimit(topic), MyOutgoingBean.class);
await().until(() -> {
HealthReport readiness = getHealth().getReadiness();
return !readiness.isOk();
});
await().until(() -> {
// liveness is ok, as we don't check the connection with the broker
HealthReport liveness = getHealth().getLiveness();
return liveness.isOk();
});
enableProxy();
await().until(this::isReady);
await().until(this::isAlive);
assertThat(companion.consumeStrings().fromTopics(topic, 3, Duration.ofMinutes(3)).awaitCompletion().count()).isEqualTo(3);
}
Aggregations