From ba00c3a067ff39448b3d7cbccf56f31a0e4f143a Mon Sep 17 00:00:00 2001 From: Luca Burgazzoli Date: Tue, 22 Sep 2020 11:38:13 +0200 Subject: [PATCH] Fix kamelet entry in catalog #492 --- .../src/it/generate-catalog-main/verify.groovy | 7 +++++++ .../src/it/generate-catalog-quarkus/verify.groovy | 7 +++++++ .../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 6ad2b0d58..60a9b53da 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 76814f683..1a7f291d5 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 37695676e..e33f2eb17 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 void process(MavenProject project, CamelCatalog catalog, CamelCatalogSpec .artifactId("camel-kamelet") .addScheme(new CamelScheme.Builder() .id("kamelet") - .http(true) + .http(false) + .passive(true) .build()) .addDependencies( () -> catalog.getRuntimeProvider() instanceof DefaultRuntimeProvider,