From f15d5057bbd6f5540a9df2ac0de8997abe4bbc93 Mon Sep 17 00:00:00 2001 From: nicolaferraro Date: Mon, 5 Oct 2020 18:13:45 +0200 Subject: [PATCH] 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 b3ba363af4..a6e32c34ad 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 2d04ce1356..84e2a76e30 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 59fec0add3..1e0370b0cf 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