This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit ed51d58ef599e7ffe4c6ff14f90eb2a5192af239 Author: nicolaferraro <[email protected]> AuthorDate: Fri Apr 30 15:17:47 2021 +0200 fix YAKS test --- insert-field-action.kamelet.yaml | 3 +++ test/insert-field-action/insert-field-action.feature | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/insert-field-action.kamelet.yaml b/insert-field-action.kamelet.yaml index 474a3c7..573af26 100644 --- a/insert-field-action.kamelet.yaml +++ b/insert-field-action.kamelet.yaml @@ -45,3 +45,6 @@ spec: - bean: "org.apache.camel.kamelets.utils.transform.InsertField" - marshal: json: {} + - set-header: + name: "Content-Type" + constant: "application/json" diff --git a/test/insert-field-action/insert-field-action.feature b/test/insert-field-action/insert-field-action.feature index 14bfca9..b200911 100644 --- a/test/insert-field-action/insert-field-action.feature +++ b/test/insert-field-action/insert-field-action.feature @@ -4,12 +4,12 @@ Feature: Timer Source Kamelet Given Disable auto removal of Kamelet resources Given Disable auto removal of Kubernetes resources Given Camel-K resource polling configuration - | maxAttempts | 20 | - | delayBetweenAttempts | 1000 | + | maxAttempts | 60 | + | delayBetweenAttempts | 3000 | Scenario: Wait for binding to start Given create Kubernetes service probe-service with target port 8080 - Then KameletBinding insert-field-action-binding should be available + Then Camel-K integration insert-field-action-binding should be running Scenario: Verify binding Given HTTP server "probe-service" @@ -21,5 +21,6 @@ Feature: Timer Source Kamelet "thefield": "thevalue" } """ + And expect HTTP request header: Content-Type="application/json" And receive POST /events And delete KameletBinding insert-field-action-binding
