Skip to content

Commit

Permalink
fix YAKS test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Apr 30, 2021
1 parent 750ad61 commit 398f060
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions insert-field-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ spec:
- bean: "org.apache.camel.kamelets.utils.transform.InsertField"
- marshal:
json: {}
- set-header:
name: "Content-Type"
constant: "application/json"
7 changes: 4 additions & 3 deletions test/insert-field-action/insert-field-action.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 398f060

Please sign in to comment.