use of io.cucumber.java.en.And in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSecretSteps method klb_secret_label_contains.
@And("the klb secret has labels containing:")
public void klb_secret_label_contains(DataTable table) {
Secret secret = secret();
assertThat(secret).isNotNull();
assertThatDataTable(table, ctx::resolvePlaceholders).matches(secret.getMetadata().getLabels());
}
use of io.cucumber.java.en.And in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSecretSteps method klb_secret_annotation_contains.
@And("the klb secret has annotations containing:")
public void klb_secret_annotation_contains(DataTable table) {
Secret secret = secret();
assertThat(secret).isNotNull();
assertThatDataTable(table, ctx::resolvePlaceholders).matches(secret.getMetadata().getAnnotations());
}
use of io.cucumber.java.en.And in project cos-fleetshard by bf2fc6cc711aee1a0c2a.
the class KameletBindingSecretSteps method klb_has_a_path_matching_value.
@And("the klb secret has an entry at path {string} with value {bool}")
public void klb_has_a_path_matching_value(String path, Boolean value) {
Secret secret = secret();
assertThat(secret).isNotNull();
assertThatJson(JacksonUtil.asJsonNode(secret)).inPath(path).isBoolean().isEqualTo(value);
}
use of io.cucumber.java.en.And 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 io.cucumber.java.en.And 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();
}
Aggregations