From 79adbcd83e5cdfca879f744b024399ba5802a241 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 18 Oct 2022 18:12:14 +0200 Subject: [PATCH] Added a Catalog Method showing the supported headers (specific for consumer, producer and common) for a Kamelet - Infinispan Signed-off-by: Andrea Cosentino --- .../camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java | 3 ++- .../apache/camel/kamelets/catalog/KameletsCatalogTest.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java index a393cfee3..07c9bbd38 100644 --- a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java +++ b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java @@ -65,7 +65,8 @@ public enum KameletPrefixSchemeEnum { google_sheets("google-sheets", "google-sheets-stream"), google_storage("google-storage", "google-storage"), http("http", "http"), - http_secured("http-secured", "http"); + http_secured("http-secured", "http"), + infinispan("infinispan", "infinispan"); public final String name; public final String scheme; diff --git a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java index a8f8d053f..7dd4f590f 100644 --- a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java +++ b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java @@ -214,5 +214,9 @@ void testSupportedHeaders() throws Exception { assertEquals(5, headersHttpSecuredSource.size()); List headersHttpSecuredSink = catalog.getKameletSupportedHeaders("http-secured-sink"); assertEquals(14, headersHttpSecuredSink.size()); + List headersInfinispanSource = catalog.getKameletSupportedHeaders("infinispan-source"); + assertEquals(6, headersInfinispanSource.size()); + List headersInfinispanSink = catalog.getKameletSupportedHeaders("infinispan-sink"); + assertEquals(14, headersInfinispanSink.size()); } }