You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "jvrubel (via GitHub)" <gi...@apache.org> on 2024/09/05 10:14:11 UTC

[PR] CAMEL-20367: Adds tests for file management via http in dev mode [camel]

jvrubel opened a new pull request, #15449:
URL: https://github.com/apache/camel/pull/15449

   Adds tests for [this part of documentation](https://camel.apache.org/manual/camel-jbang.html#_uploading_files_to_source_directory_via_http)
   
   Also an additional set of methods to check logs don't contain a string and debug prints when a command fails inside host.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-20367: Adds tests for file management via http in dev mode [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #15449:
URL: https://github.com/apache/camel/pull/15449


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-20367: Adds tests for file management via http in dev mode [camel]

Posted by "mcarlett (via GitHub)" <gi...@apache.org>.
mcarlett commented on code in PR #15449:
URL: https://github.com/apache/camel/pull/15449#discussion_r1745208415


##########
dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/support/JBangTestSupport.java:
##########
@@ -185,6 +185,26 @@ protected void checkLogContains(String route, String contains, int waitForSecond
                         .contains(contains)));
     }
 
+    protected void checkLogDoesNotContain(String route, String contains, int waitForSeconds) {
+        Assertions.assertThatNoException().isThrownBy(() -> Awaitility.await()
+                .atMost(waitForSeconds, TimeUnit.SECONDS)
+                .untilAsserted(() -> Assertions.assertThat(getLogs(route))
+                        .as("log contains " + contains)

Review Comment:
   maybe the description is `log does not contain ...`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-20367: Adds tests for file management via http in dev mode [camel]

Posted by "jvrubel (via GitHub)" <gi...@apache.org>.
jvrubel commented on code in PR #15449:
URL: https://github.com/apache/camel/pull/15449#discussion_r1745226809


##########
dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/support/JBangTestSupport.java:
##########
@@ -185,6 +185,26 @@ protected void checkLogContains(String route, String contains, int waitForSecond
                         .contains(contains)));
     }
 
+    protected void checkLogDoesNotContain(String route, String contains, int waitForSeconds) {
+        Assertions.assertThatNoException().isThrownBy(() -> Awaitility.await()
+                .atMost(waitForSeconds, TimeUnit.SECONDS)
+                .untilAsserted(() -> Assertions.assertThat(getLogs(route))
+                        .as("log contains " + contains)

Review Comment:
   Changed, thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org