This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new aac075a77 chore: Citrus tests for the PQC, exec, DNS dig, GraphQL,
Splunk HEC and geo Kamelets (#3261) (#3264)
aac075a77 is described below
commit aac075a77ee834c751bd2bb99b72aeaff4529381
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 19 15:05:01 2026 +0100
chore: Citrus tests for the PQC, exec, DNS dig, GraphQL, Splunk HEC and geo
Kamelets (#3261) (#3264)
pqc-signature-action signs and verifies, pqc-kem-action gives its key
object,
exec-sink runs tr on the body, and dns-dig-action asks the resolver.
graphql-sink,
splunk-hec-sink, nominatim-geocode-action and ogcapi-features-action call
the
Citrus HTTP server, which stands in for the service. Each test records the
body
type and Content-Type the Kamelet gives, for #3117.
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../src/test/java/CommonIT.java | 25 +++++++
.../dns/dns-dig-action-route.citrus.it.yaml | 55 +++++++++++++++
.../test/resources/dns/dns-dig-action-route.yaml | 36 ++++++++++
.../resources/exec/exec-sink-route.citrus.it.yaml | 57 +++++++++++++++
.../src/test/resources/exec/exec-sink-route.yaml | 42 ++++++++++++
.../nominatim-geocode-action-route.citrus.it.yaml | 75 ++++++++++++++++++++
.../geo/nominatim-geocode-action-route.yaml | 44 ++++++++++++
.../ogcapi-features-action-route.citrus.it.yaml | 73 ++++++++++++++++++++
.../geo/ogcapi-features-action-route.yaml | 40 +++++++++++
.../graphql/graphql-sink-route.citrus.it.yaml | 76 ++++++++++++++++++++
.../test/resources/graphql/graphql-sink-route.yaml | 38 ++++++++++
.../pqc/pqc-kem-action-route.citrus.it.yaml | 55 +++++++++++++++
.../test/resources/pqc/pqc-kem-action-route.yaml | 43 ++++++++++++
.../pqc/pqc-signature-action-route.citrus.it.yaml | 59 ++++++++++++++++
.../resources/pqc/pqc-signature-action-route.yaml | 52 ++++++++++++++
.../splunk/splunk-hec-sink-route.citrus.it.yaml | 80 ++++++++++++++++++++++
.../resources/splunk/splunk-hec-sink-route.yaml | 43 ++++++++++++
17 files changed, 893 insertions(+)
diff --git a/tests/camel-kamelets-itest/src/test/java/CommonIT.java
b/tests/camel-kamelets-itest/src/test/java/CommonIT.java
index 5ae9f7bfc..851e0c763 100644
--- a/tests/camel-kamelets-itest/src/test/java/CommonIT.java
+++ b/tests/camel-kamelets-itest/src/test/java/CommonIT.java
@@ -151,4 +151,29 @@ public class CommonIT {
public Stream<DynamicTest> kafkaRouter() {
return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("kafkarouter");
}
+
+ @CitrusTestFactory
+ public Stream<DynamicTest> pqc() {
+ return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("pqc");
+ }
+
+ @CitrusTestFactory
+ public Stream<DynamicTest> exec() {
+ return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("exec");
+ }
+
+ @CitrusTestFactory
+ public Stream<DynamicTest> graphql() {
+ return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("graphql");
+ }
+
+ @CitrusTestFactory
+ public Stream<DynamicTest> splunk() {
+ return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("splunk");
+ }
+
+ @CitrusTestFactory
+ public Stream<DynamicTest> geo() {
+ return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("geo");
+ }
}
diff --git
a/tests/camel-kamelets-itest/src/test/resources/dns/dns-dig-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/dns/dns-dig-action-route.citrus.it.yaml
new file mode 100644
index 000000000..aafc699a3
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/dns/dns-dig-action-route.citrus.it.yaml
@@ -0,0 +1,55 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: dns-dig-action-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "dns/dns-dig-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
+ body:
+ data: '@contains(''opcode: QUERY'')@'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/dns/dns-dig-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/dns/dns-dig-action-route.yaml
new file mode 100644
index 000000000..d63b7efaf
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/dns/dns-dig-action-route.yaml
@@ -0,0 +1,36 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: 'localhost'
+ - to:
+ uri: "kamelet:dns-dig-action"
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/exec/exec-sink-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/exec/exec-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..3055122a1
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/exec/exec-sink-route.citrus.it.yaml
@@ -0,0 +1,57 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: exec-sink-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "exec/exec-sink-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value:
'org.apache.camel.converter.stream.ByteArrayInputStreamCache'
+ - name: "X-Content-Type"
+ value: 'ct='
+ - name: "X-Exit-Value"
+ value: '0'
+ body:
+ data: 'HELLO EXEC'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/exec/exec-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/exec/exec-sink-route.yaml
new file mode 100644
index 000000000..836a1838d
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/exec/exec-sink-route.yaml
@@ -0,0 +1,42 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: 'hello exec'
+ - to:
+ uri: "kamelet:exec-sink"
+ parameters:
+ executable: 'tr'
+ args: 'a-z A-Z'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - setHeader:
+ name: X-Exit-Value
+ simple: '${header.CamelExecExitValue}'
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/geo/nominatim-geocode-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/geo/nominatim-geocode-action-route.citrus.it.yaml
new file mode 100644
index 000000000..f206dec17
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/geo/nominatim-geocode-action-route.citrus.it.yaml
@@ -0,0 +1,75 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: nominatim-geocode-action-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "geo/nominatim-geocode-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ GET:
+ path: "/search"
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ headers:
+ - name: "Content-Type"
+ value: "application/json"
+ body:
+ data:
'[{"place_id":1,"lat":"52.5170365","lon":"13.3888599","display_name":"Berlin,
Germany","type":"city","class":"boundary","importance":0.9,"address":{"city":"Berlin","country":"Germany","country_code":"de"}}]'
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'org.apache.camel.converter.stream.InputStreamCache'
+ - name: "X-Content-Type"
+ value: 'ct=application/json'
+ - name: "X-Lat"
+ value: '52.51703650'
+ - name: "X-Lng"
+ value: '@startsWith(''13.38885'')@'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/geo/nominatim-geocode-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/geo/nominatim-geocode-action-route.yaml
new file mode 100644
index 000000000..e1f4a72ac
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/geo/nominatim-geocode-action-route.yaml
@@ -0,0 +1,44 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: 'Berlin'
+ - to:
+ uri: "kamelet:nominatim-geocode-action"
+ parameters:
+ serverUrl: 'http://localhost:{{http.server.port}}'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - setHeader:
+ name: X-Lat
+ simple: '${header.CamelGeoCoderLat}'
+ - setHeader:
+ name: X-Lng
+ simple: '${header.CamelGeoCoderLng}'
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/geo/ogcapi-features-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/geo/ogcapi-features-action-route.citrus.it.yaml
new file mode 100644
index 000000000..ea4ab6ecb
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/geo/ogcapi-features-action-route.citrus.it.yaml
@@ -0,0 +1,73 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: ogcapi-features-action-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "geo/ogcapi-features-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ GET:
+ path: "/collections/lakes/items"
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ headers:
+ - name: "Content-Type"
+ value: "application/geo+json"
+ body:
+ data:
'{"type":"FeatureCollection","features":[{"type":"Feature","id":"1","properties":{"name":"Lake
Baikal"},"geometry":{"type":"Point","coordinates":[108.0,53.5]}}]}'
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct=application/geo+json'
+ body:
+ data:
'{"type":"FeatureCollection","features":[{"type":"Feature","id":"1","properties":{"name":"Lake
Baikal"},"geometry":{"type":"Point","coordinates":[108.0,53.5]}}]}'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/geo/ogcapi-features-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/geo/ogcapi-features-action-route.yaml
new file mode 100644
index 000000000..3caff02ed
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/geo/ogcapi-features-action-route.yaml
@@ -0,0 +1,40 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: ''
+ - to:
+ uri: "kamelet:ogcapi-features-action"
+ parameters:
+ url: 'http://localhost:{{http.server.port}}'
+ collection: 'lakes'
+ limit: '1'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/graphql/graphql-sink-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/graphql/graphql-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..c73bda862
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/graphql/graphql-sink-route.citrus.it.yaml
@@ -0,0 +1,76 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: graphql-sink-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "graphql/graphql-sink-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/graphql"
+ type: "plaintext"
+ body:
+ data: '@contains(''books'')@'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ headers:
+ - name: "Content-Type"
+ value: "application/json"
+ body:
+ data: '{"data":{"books":[{"title":"Camel in Action"}]}}'
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct=application/json'
+ body:
+ data: '{"data":{"books":[{"title":"Camel in Action"}]}}'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/graphql/graphql-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/graphql/graphql-sink-route.yaml
new file mode 100644
index 000000000..d70e3999b
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/graphql/graphql-sink-route.yaml
@@ -0,0 +1,38 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: '{ books { title } }'
+ - to:
+ uri: "kamelet:graphql-sink"
+ parameters:
+ url: 'http://localhost:{{http.server.port}}/graphql'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-kem-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-kem-action-route.citrus.it.yaml
new file mode 100644
index 000000000..c28ac2ef8
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-kem-action-route.citrus.it.yaml
@@ -0,0 +1,55 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: pqc-kem-action-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "pqc/pqc-kem-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'org.bouncycastle.jcajce.SecretKeyWithEncapsulation'
+ - name: "X-Content-Type"
+ value: 'ct='
+ body:
+ data: 'done'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-kem-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-kem-action-route.yaml
new file mode 100644
index 000000000..a32d5233b
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-kem-action-route.yaml
@@ -0,0 +1,43 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: 'unused'
+ - to:
+ uri: "kamelet:pqc-kem-action"
+ parameters:
+ keyEncapsulationAlgorithm: 'MLKEM'
+ operation: 'generateSecretKeyEncapsulation'
+ symmetricKeyAlgorithm: 'AES'
+ symmetricKeyLength: '128'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - setBody:
+ constant: 'done'
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-signature-action-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-signature-action-route.citrus.it.yaml
new file mode 100644
index 000000000..ee6f8065e
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-signature-action-route.citrus.it.yaml
@@ -0,0 +1,59 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: pqc-signature-action-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "pqc/pqc-signature-action-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Signature-Type"
+ value: '[B'
+ - name: "X-Verified"
+ value: 'true'
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
+ body:
+ data: 'order ORD-1'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-signature-action-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-signature-action-route.yaml
new file mode 100644
index 000000000..0aaff66be
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/pqc/pqc-signature-action-route.yaml
@@ -0,0 +1,52 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: 'order ORD-1'
+ - to:
+ uri: "kamelet:pqc-signature-action"
+ parameters:
+ signatureAlgorithm: 'MLDSA'
+ operation: 'sign'
+ - setHeader:
+ name: X-Signature-Type
+ simple: '${header.CamelPQCSignature.getClass().getName()}'
+ - to:
+ uri: "kamelet:pqc-signature-action"
+ parameters:
+ signatureAlgorithm: 'MLDSA'
+ operation: 'verify'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - setHeader:
+ name: X-Verified
+ simple: '${header.CamelPQCVerification}'
+ - removeHeader:
+ name: CamelPQCSignature
+ - to:
+ uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/splunk/splunk-hec-sink-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/splunk/splunk-hec-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..4988ff0ab
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/splunk/splunk-hec-sink-route.citrus.it.yaml
@@ -0,0 +1,80 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: splunk-hec-sink-route-test
+actions:
+ - camel:
+ cli:
+ run:
+ waitForRunningState: false
+ integration:
+ file: "splunk/splunk-hec-sink-route.yaml"
+ systemProperties:
+ properties:
+ - name: "http.sink.url"
+ value: "http://localhost:${http.server.port}"
+ - name: "http.server.port"
+ value: "${http.server.port}"
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/services/collector/event"
+ type: "plaintext"
+ headers:
+ - name: "Authorization"
+ value: 'Splunk 12345678-1234-1234-1234-123456789012'
+ body:
+ data: '@contains(''order ORD-1'')@'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ headers:
+ - name: "Content-Type"
+ value: "application/json"
+ body:
+ data: '{"text":"Success","code":0}'
+
+ - http:
+ server: "httpServer"
+ receiveRequest:
+ POST:
+ path: "/result"
+ type: "plaintext"
+ headers:
+ - name: "X-Body-Type"
+ value: 'java.lang.String'
+ - name: "X-Content-Type"
+ value: 'ct='
+ body:
+ data: 'order ORD-1'
+
+ - http:
+ server: "httpServer"
+ sendResponse:
+ response:
+ status: 200
+ reasonPhrase: "OK"
+ version: "HTTP/1.1"
+ body:
+ data: 'OK'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/splunk/splunk-hec-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/splunk/splunk-hec-sink-route.yaml
new file mode 100644
index 000000000..d0cf555d7
--- /dev/null
+++
b/tests/camel-kamelets-itest/src/test/resources/splunk/splunk-hec-sink-route.yaml
@@ -0,0 +1,43 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+- route:
+ from:
+ uri: "timer:tick"
+ parameters:
+ period: "1000"
+ repeatCount: 1
+ steps:
+ - setBody:
+ constant: 'order ORD-1'
+ - to:
+ uri: "kamelet:splunk-hec-sink"
+ parameters:
+ splunkUrl: 'localhost:{{http.server.port}}'
+ token: '12345678-1234-1234-1234-123456789012'
+ https: 'false'
+ index: 'orders'
+ source: 'shop'
+ sourceType: 'order'
+ - setHeader:
+ name: X-Body-Type
+ simple: "${body.getClass().getName()}"
+ - setHeader:
+ name: X-Content-Type
+ simple: "ct=${header.Content-Type}"
+ - to:
+ uri: "{{http.sink.url}}/result"