use of io.strimzi.api.kafka.model.KafkaConnector in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KafkaConnectorSteps method untilKctr.
private void untilKctr(Consumer<KafkaConnector> predicate) {
awaiter.untilAsserted(() -> {
KafkaConnector res = kctr();
assertThat(res).isNotNull();
assertThat(res).satisfies(predicate);
});
}
use of io.strimzi.api.kafka.model.KafkaConnector in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KafkaConnectorSteps method kctr_has_a_path_matching_value.
@And("the kctr has an entry at path {string} with value {int}")
public void kctr_has_a_path_matching_value(String path, int value) {
KafkaConnector res = kctr();
assertThat(res).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(res)).inPath(path).isNumber().satisfies(bd -> assertThat(bd.intValue()).isEqualTo(value));
}
use of io.strimzi.api.kafka.model.KafkaConnector in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KafkaConnectorSteps method kctr_has_a_path_matching_object.
@And("the kctr has an object at path {string} containing:")
public void kctr_has_a_path_matching_object(String path, String content) {
KafkaConnector res = kctr();
assertThat(res).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(res)).inPath(path).isObject().containsValue(Serialization.unmarshal(content, JsonNode.class));
}
use of io.strimzi.api.kafka.model.KafkaConnector in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KafkaConnectorSteps method kctr_annotation_contains.
@And("the kctr has annotations containing:")
public void kctr_annotation_contains(DataTable table) {
KafkaConnector res = kctr();
assertThat(res).isNotNull();
assertThatDataTable(table, ctx::resolvePlaceholders).matches(res.getMetadata().getAnnotations());
}
use of io.strimzi.api.kafka.model.KafkaConnector in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KafkaConnectorSteps method kctr_has_a_path_matching_value.
@And("the kctr has an entry at path {string} with value {string}")
public void kctr_has_a_path_matching_value(String path, String value) {
KafkaConnector res = kctr();
assertThat(res).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(res)).inPath(path).isString().isEqualTo(ctx.resolvePlaceholders(value));
}
Aggregations