This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
The following commit(s) were added to refs/heads/master by this push: new ba00c3a Fix kamelet entry in catalog #492 ba00c3a is described below commit ba00c3a067ff39448b3d7cbccf56f31a0e4f143a Author: Luca Burgazzoli <lburgazz...@gmail.com> AuthorDate: Tue Sep 22 11:38:13 2020 +0200 Fix kamelet entry in catalog #492 --- .../src/it/generate-catalog-main/verify.groovy | 7 +++++++ .../src/it/generate-catalog-quarkus/verify.groovy | 7 +++++++ .../camel/k/tooling/maven/processors/CatalogProcessor3x.java | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tooling/camel-k-maven-plugin/src/it/generate-catalog-main/verify.groovy b/tooling/camel-k-maven-plugin/src/it/generate-catalog-main/verify.groovy index 6ad2b0d..60a9b53 100644 --- a/tooling/camel-k-maven-plugin/src/it/generate-catalog-main/verify.groovy +++ b/tooling/camel-k-maven-plugin/src/it/generate-catalog-main/verify.groovy @@ -49,4 +49,11 @@ new File(basedir, "catalog.yaml").withReader { assert schemes.size() == 1 assert schemes[0].id == 'knative' } + + catalog.spec.artifacts['camel-kamelet'].with { + assert schemes.size() == 1 + assert schemes[0].id == 'kamelet' + assert schemes[0].passive == true + assert schemes[0].http == false + } } diff --git a/tooling/camel-k-maven-plugin/src/it/generate-catalog-quarkus/verify.groovy b/tooling/camel-k-maven-plugin/src/it/generate-catalog-quarkus/verify.groovy index 76814f6..1a7f291 100644 --- a/tooling/camel-k-maven-plugin/src/it/generate-catalog-quarkus/verify.groovy +++ b/tooling/camel-k-maven-plugin/src/it/generate-catalog-quarkus/verify.groovy @@ -49,4 +49,11 @@ new File(basedir, "catalog.yaml").withReader { assert schemes.size() == 1 assert schemes[0].id == 'knative' } + + catalog.spec.artifacts['camel-kamelet'].with { + assert schemes.size() == 1 + assert schemes[0].id == 'kamelet' + assert schemes[0].passive == true + assert schemes[0].http == false + } } \ No newline at end of file diff --git a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java index 3769567..e33f2eb 100644 --- a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java +++ b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/processors/CatalogProcessor3x.java @@ -191,7 +191,8 @@ public class CatalogProcessor3x implements CatalogProcessor { .artifactId("camel-kamelet") .addScheme(new CamelScheme.Builder() .id("kamelet") - .http(true) + .http(false) + .passive(true) .build()) .addDependencies( () -> catalog.getRuntimeProvider() instanceof DefaultRuntimeProvider,