Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix kamelet test #199

Merged
merged 2 commits into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/insert-field-action/insert-field-action-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ spec:
field: "thefield"
value: "thevalue"
sink:
uri: http://probe-service.${YAKS_NAMESPACE}/events
uri: http://probe-service/events
2 changes: 1 addition & 1 deletion test/insert-field-action/insert-field-action.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions test/insert-field-action/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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