Skip to content

Commit

Permalink
chore(e2e): fix test
Browse files Browse the repository at this point in the history
chore(e2e): fix http cloudevent test
  • Loading branch information
nicolaferraro committed Oct 5, 2020
1 parent 2b2f188 commit f15d505
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/yaks/common/kamelet-binding/display.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

from('knative:endpoint/display')
.log('${body}')
.setBody().header('CE-Type')
.setBody().header('CamelCloudEventType')
.log('type: ${body}');
5 changes: 5 additions & 0 deletions e2e/yaks/common/kamelet-binding/kamelet.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ Feature: Camel K can bind Kamelets
Scenario: Running integration using a simple Kamelet with KameletBinding
Given integration logger-sink-binding is running
Then integration logger-sink-binding should print message: Hello Kamelets

Scenario: Binding to a HTTP URI should use CloudEvents
Given integration display is running
Then integration display should print type: org.apache.camel.event
Then integration display should print Hello
2 changes: 1 addition & 1 deletion e2e/yaks/common/kamelet-binding/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ pre:
kubectl wait kameletbinding logger-sink-binding --for=condition=Ready --timeout=10m -n $YAKS_NAMESPACE
kamel run display.groovy -w -n $YAKS_NAMESPACE
cat timer-source-binding-display.yaml | sed 's/{namespace}/'"${YAKS_NAMESPACE}"'/' | kubectl apply -f -
cat timer-source-binding-display.yaml | sed 's/{namespace}/'"${YAKS_NAMESPACE}"'/' | kubectl apply -n $YAKS_NAMESPACE -f -
kubectl wait kameletbinding timer-source-binding-display --for=condition=Ready --timeout=10m -n $YAKS_NAMESPACE

0 comments on commit f15d505

Please sign in to comment.