diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e776ab318..57c0d38ef 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -36,8 +36,8 @@ on: - 'NOTICE' env: - CAMEL_K_VERSION: 1.3.2 - YAKS_VERSION: 0.4.0-202104120032 + CAMEL_K_VERSION: 1.4.0 + YAKS_VERSION: 0.4.0-202105030021 jobs: test: @@ -84,3 +84,8 @@ jobs: echo "Running tests" yaks test ./test + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: dumps + path: /tmp/dumps/*.log diff --git a/test/insert-field-action/insert-field-action-binding.yaml b/test/insert-field-action/insert-field-action-binding.yaml index 8651ab491..2e111d8bd 100644 --- a/test/insert-field-action/insert-field-action-binding.yaml +++ b/test/insert-field-action/insert-field-action-binding.yaml @@ -19,4 +19,4 @@ spec: field: "thefield" value: "thevalue" sink: - uri: http://probe-service.${YAKS_NAMESPACE}/events + uri: http://probe-service/events diff --git a/test/insert-field-action/insert-field-action.feature b/test/insert-field-action/insert-field-action.feature index b20091158..b0f0ca515 100644 --- a/test/insert-field-action/insert-field-action.feature +++ b/test/insert-field-action/insert-field-action.feature @@ -21,6 +21,6 @@ Feature: Timer Source Kamelet "thefield": "thevalue" } """ - And expect HTTP request header: Content-Type="application/json" + And expect HTTP request header: Content-Type="application/json;charset=UTF-8" And receive POST /events And delete KameletBinding insert-field-action-binding diff --git a/test/insert-field-action/yaks-config.yaml b/test/insert-field-action/yaks-config.yaml index 16e91504c..6290a6ad5 100644 --- a/test/insert-field-action/yaks-config.yaml +++ b/test/insert-field-action/yaks-config.yaml @@ -27,3 +27,9 @@ pre: kubectl apply -f ../../timer-source.kamelet.yaml -n $YAKS_NAMESPACE kubectl apply -f ../../insert-field-action.kamelet.yaml -n $YAKS_NAMESPACE kubectl apply -f insert-field-action-binding.yaml -n $YAKS_NAMESPACE +post: +- name: dump + run: | + kamel dump $(basename `pwd`)-dump.log + mkdir -p /tmp/dumps + cp *-dump.log /tmp/dumps