Skip to content

Commit

Permalink
fix(kamelet): Data type action kamelet transformer error
Browse files Browse the repository at this point in the history
* remove default data-type-action kamelet in e2e yaks test
* rewrite the test to use correct formats
  • Loading branch information
gansheer committed May 28, 2024
1 parent 8f63c56 commit 9aac926
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 83 deletions.
70 changes: 0 additions & 70 deletions e2e/yaks/common/kamelet-data-types/data-type-action.kamelet.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions e2e/yaks/common/kamelet-data-types/event-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
name: event-source
dataTypes:
out:
format: binary
format: "application-octet-stream"
steps:
- ref:
kind: Kamelet
Expand All @@ -40,4 +40,4 @@ spec:
name: event-sink
dataTypes:
in:
format: string
format: "text-plain"
8 changes: 0 additions & 8 deletions e2e/yaks/common/kamelet-data-types/event-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ spec:
definition:
title: "Event Sink"
description: "Handles incoming event with data type auto conversion"
dataTypes:
in:
default: string
types:
string:
mediaType: plain/text
binary:
mediaType: application/octet-stream
dependencies:
- "camel:core"
- "camel:kamelet"
Expand Down
2 changes: 2 additions & 0 deletions e2e/yaks/common/kamelet-data-types/event-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ spec:
default: string
types:
string:
format: "plain-text"
mediaType: plain/text
binary:
format: "application-octet-stream"
mediaType: application/octet-stream
dependencies:
- "camel:core"
Expand Down
4 changes: 2 additions & 2 deletions e2e/yaks/common/kamelet-data-types/timer-to-log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ spec:
name: log-action
dataTypes:
in:
format: binary
format: "application-octet-stream"
out:
format: string
format: "text-plain"
sink:
ref:
kind: Kamelet
Expand Down
1 change: 0 additions & 1 deletion e2e/yaks/common/kamelet-data-types/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pre:
run: |
kubectl apply -f event-source.kamelet.yaml -n $YAKS_NAMESPACE
kubectl apply -f event-sink.kamelet.yaml -n $YAKS_NAMESPACE
kubectl apply -f data-type-action.kamelet.yaml -n $YAKS_NAMESPACE
post:
- name: print dump
if: env:CI=true && failure()
Expand Down

0 comments on commit 9aac926

Please sign in to comment.