You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2020/10/06 08:03:19 UTC
[camel-k] 08/08: chore(e2e): fix test chore(e2e): fix http
cloudevent test
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 7de8fb20602a5851b222227a23eaf6fd8ea6af00
Author: nicolaferraro <ni...@gmail.com>
AuthorDate: Mon Oct 5 18:13:45 2020 +0200
chore(e2e): fix test
chore(e2e): fix http cloudevent test
---
e2e/yaks/common/kamelet-binding/display.groovy | 2 +-
e2e/yaks/common/kamelet-binding/kamelet.feature | 5 +++++
e2e/yaks/common/kamelet-binding/yaks-config.yaml | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/e2e/yaks/common/kamelet-binding/display.groovy b/e2e/yaks/common/kamelet-binding/display.groovy
index b3ba363..a6e32c3 100644
--- a/e2e/yaks/common/kamelet-binding/display.groovy
+++ b/e2e/yaks/common/kamelet-binding/display.groovy
@@ -18,5 +18,5 @@
from('knative:endpoint/display')
.log('${body}')
- .setBody().header('CE-Type')
+ .setBody().header('CamelCloudEventType')
.log('type: ${body}');
diff --git a/e2e/yaks/common/kamelet-binding/kamelet.feature b/e2e/yaks/common/kamelet-binding/kamelet.feature
index 2d04ce1..84e2a76 100644
--- a/e2e/yaks/common/kamelet-binding/kamelet.feature
+++ b/e2e/yaks/common/kamelet-binding/kamelet.feature
@@ -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
diff --git a/e2e/yaks/common/kamelet-binding/yaks-config.yaml b/e2e/yaks/common/kamelet-binding/yaks-config.yaml
index 59fec0a..1e0370b 100644
--- a/e2e/yaks/common/kamelet-binding/yaks-config.yaml
+++ b/e2e/yaks/common/kamelet-binding/yaks-config.yaml
@@ -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