Skip to content

Commit

Permalink
chore: Add Camel K integration logs steps for multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed May 26, 2023
1 parent 65201ef commit fe972a1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ public void integrationShouldBeStopped(String name) {

@Then("^Camel K integration ([a-z0-9-]+) should print (.*)$")
public void integrationShouldPrint(String name, String message) {
integrationShouldPrintMultiline(name, message);
}

@Then("^Camel K integration ([a-z0-9-]+) should print$")
public void integrationShouldPrintMultiline(String name, String message) {
runner.run(camelk()
.client(k8sClient)
.verifyIntegration(name)
Expand All @@ -244,6 +249,11 @@ public void integrationShouldPrint(String name, String message) {

@Then("^Camel K integration ([a-z0-9-]+) should not print (.*)$")
public void integrationShouldNotPrint(String name, String message) {
integrationShouldNotPrintMultiline(name, message);
}

@Then("^Camel K integration ([a-z0-9-]+) should not print$")
public void integrationShouldNotPrintMultiline(String name, String message) {
runner.run(assertException()
.exception(ActionTimeoutException.class)
.when(camelk()
Expand Down

0 comments on commit fe972a1

Please sign in to comment.