Skip to content

Commit

Permalink
fix: Fix Kamelet unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Aug 17, 2023
1 parent d27ef21 commit fe132e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void buildComplexKamelet() throws IOException {

Kamelet kamelet = new Kamelet.Builder()
.name("time-source")
.addLabel(KameletSettings.KAMELET_TYPE_LABEL, "source")
.definition(definition)
.dataTypes(dataTypes)
.dependencies(Collections.singletonList("mvn:fake.dependency:id:version-1"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"apiVersion": "camel.apache.org/v1",
"kind": "Kamelet",
"metadata": {
"labels": {
"camel.apache.org/kamelet.type": "source"
},
"name": "time-source"
},
"spec": {
Expand All @@ -26,16 +29,16 @@
"dataTypes": {
"out": {
"default": "text",
"types": [
{
"types": {
"binary": {
"scheme": "camel",
"format": "binary"
},
{
"text": {
"scheme": "camel",
"format": "text"
}
]
}
}
},
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"dataTypes": {
"out": {
"default": "text",
"types": [
{
"types": {
"text": {
"format": "text",
"mediaType": "text/plain"
}
]
}
}
},
"template": {
Expand Down

0 comments on commit fe132e9

Please sign in to comment.