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 CI tests #281

Merged
merged 5 commits into from
May 17, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/timer-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The following table summarizes the configuration options available for the `time
|===
| Property| Name| Description| Type| Default| Example
| *message {empty}* *| Message| The message to generate| string| | `"hello world"`
| contentType| Content Type| The content type of the message being generated| string| `"text/plain"`|
| period| Period| The interval between two events in milliseconds| integer| `1000`|
|===

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ spec:
description: The message to generate
type: string
example: hello world
types:
out:
mediaType: text/plain
contentType:
title: Content Type
description: The content type of the message being generated
type: string
default: text/plain
dependencies:
- "camel:core"
- "camel:timer"
Expand All @@ -59,4 +61,7 @@ spec:
steps:
- set-body:
constant: "{{message}}"
- set-header:
name: "Content-Type"
constant: "{{contentType}"
- to: kamelet:sink
9 changes: 8 additions & 1 deletion test/earthquake-source/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ pre:
run: |
# Install required Kamelets (these steps may be done globally in future versions)

kamel install -n $YAKS_NAMESPACE
kamel install -n $YAKS_NAMESPACE -w
kubectl delete kamelet -n $YAKS_NAMESPACE --all
kubectl apply -f ../../earthquake-source.kamelet.yaml -n $YAKS_NAMESPACE
post:
- name: dump
run: |
kamel dump -n $YAKS_NAMESPACE $(basename `pwd`)-dump.log
mkdir -p /tmp/dumps
cp *-dump.log /tmp/dumps
3 changes: 2 additions & 1 deletion test/insert-field-action/insert-field-action-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ spec:
kind: Kamelet
name: timer-source
properties:
message: "thecontent"
message: '{"content": "thecontent"}'
contentType: "application/json"
steps:
- ref:
apiVersion: camel.apache.org/v1alpha1
Expand Down
5 changes: 3 additions & 2 deletions test/insert-field-action/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ pre:
run: |
# Install required Kamelets (these steps may be done globally in future versions)

kamel install -n $YAKS_NAMESPACE
kamel install -n $YAKS_NAMESPACE -w
kubectl delete kamelet -n $YAKS_NAMESPACE --all
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
kamel dump -n $YAKS_NAMESPACE $(basename `pwd`)-dump.log
mkdir -p /tmp/dumps
cp *-dump.log /tmp/dumps
9 changes: 8 additions & 1 deletion test/timer-source/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ pre:
run: |
# Install required Kamelets (these steps may be done globally in future versions)

kamel install -n $YAKS_NAMESPACE
kamel install -n $YAKS_NAMESPACE -w
kubectl delete kamelet -n $YAKS_NAMESPACE --all
kubectl apply -f ../../timer-source.kamelet.yaml -n $YAKS_NAMESPACE
post:
- name: dump
run: |
kamel dump -n $YAKS_NAMESPACE $(basename `pwd`)-dump.log
mkdir -p /tmp/dumps
cp *-dump.log /tmp/dumps
11 changes: 8 additions & 3 deletions timer-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ spec:
description: The message to generate
type: string
example: hello world
types:
out:
mediaType: text/plain
contentType:
title: Content Type
description: The content type of the message being generated
type: string
default: text/plain
dependencies:
- "camel:core"
- "camel:timer"
Expand All @@ -59,4 +61,7 @@ spec:
steps:
- set-body:
constant: "{{message}}"
- set-header:
name: "Content-Type"
constant: "{{contentType}}"
- to: kamelet:sink