use of org.bf2.cos.fleetshard.operator.camel.model.KameletBinding in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSteps method klb_has_an_empty_object_at_path.
@And("the klb has an empty object at path {string}")
public void klb_has_an_empty_object_at_path(String path) {
KameletBinding res = klb();
assertThat(res).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(res)).inPath(path).isObject().isEmpty();
}
use of org.bf2.cos.fleetshard.operator.camel.model.KameletBinding in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSteps method klb_has_a_path_matching_object.
@And("the klb has an object at path {string} containing:")
public void klb_has_a_path_matching_object(String path, String content) {
KameletBinding res = klb();
assertThat(res).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(res)).inPath(path).isObject().containsValue(Serialization.unmarshal(content, JsonNode.class));
}
use of org.bf2.cos.fleetshard.operator.camel.model.KameletBinding in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSteps method klb_has_a_path_matching_value.
@And("the klb has an entry at path {string} with value {int}")
public void klb_has_a_path_matching_value(String path, int value) {
KameletBinding res = klb();
assertThat(res).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(res)).inPath(path).isNumber().isEqualTo(value);
}
use of org.bf2.cos.fleetshard.operator.camel.model.KameletBinding in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSteps method klb_target_labels_contains.
@And("the klb has target-labels containing {string}")
public void klb_target_labels_contains(String value) {
KameletBinding res = klb();
assertThat(res).isNotNull();
assertThat(res.getMetadata().getAnnotations()).isNotEmpty();
assertThat(res.getMetadata().getAnnotations()).isNotEmpty();
assertThat(res.getMetadata().getAnnotations()).containsKey(CamelConstants.TRAIT_CAMEL_APACHE_ORG_OWNER_TARGET_LABELS);
String labels = res.getMetadata().getAnnotations().get(CamelConstants.TRAIT_CAMEL_APACHE_ORG_OWNER_TARGET_LABELS);
assertThatJson(labels).isArray().contains(value);
}
use of org.bf2.cos.fleetshard.operator.camel.model.KameletBinding in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSteps method klb_annotations_does_not_contain.
@And("the klb annotations does not contain {string}")
public void klb_annotations_does_not_contain(String annotation) {
KameletBinding res = klb();
assertThat(res).isNotNull();
assertThat(res.getMetadata().getAnnotations()).doesNotContainKey(annotation);
}
Aggregations