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 e3109a7cd chore: verified label on four more tested Kamelets, and
remove the unused Salesforce test files (#3324)
e3109a7cd is described below
commit e3109a7cd24fb1eb8f4bd4ad017c9977d5fa2423
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Nov 21 15:04:52 2026 +0100
chore: verified label on four more tested Kamelets, and remove the unused
Salesforce test files (#3324)
aws-translate-action, github-pullrequest-source,
github-pullrequest-comment-source and github-tag-source have passing
Citrus tests on main but no verified label. The Camel K feature file of
the Salesforce sink, its three Pipes and its two secret scripts are no
longer run by anything: the Salesforce sinks have Citrus tests.
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
kamelets/aws-translate-action.kamelet.yaml | 1 +
.../github-pullrequest-comment-source.kamelet.yaml | 1 +
kamelets/github-pullrequest-source.kamelet.yaml | 1 +
kamelets/github-tag-source.kamelet.yaml | 1 +
.../kamelets/aws-translate-action.kamelet.yaml | 1 +
.../github-pullrequest-comment-source.kamelet.yaml | 1 +
.../github-pullrequest-source.kamelet.yaml | 1 +
.../kamelets/github-tag-source.kamelet.yaml | 1 +
.../src/test/resources/salesforce/delete-secret.sh | 19 ------
.../direct-to-salesforce-delete-pipe.yaml | 40 -----------
.../direct-to-salesforce-update-pipe.yaml | 47 -------------
.../test/resources/salesforce/prepare-secret.sh | 21 ------
.../resources/salesforce/salesforce-sink.feature | 77 ----------------------
.../salesforce/timer-to-salesforce-pipe.yaml | 41 ------------
14 files changed, 8 insertions(+), 245 deletions(-)
diff --git a/kamelets/aws-translate-action.kamelet.yaml
b/kamelets/aws-translate-action.kamelet.yaml
index fde7475d2..97890ca30 100644
--- a/kamelets/aws-translate-action.kamelet.yaml
+++ b/kamelets/aws-translate-action.kamelet.yaml
@@ -28,6 +28,7 @@ metadata:
camel.apache.org/kamelet.namespace: "AWS"
labels:
camel.apache.org/kamelet.type: "action"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "AWS Translate Action"
diff --git a/kamelets/github-pullrequest-comment-source.kamelet.yaml
b/kamelets/github-pullrequest-comment-source.kamelet.yaml
index a725601ff..66fb80d67 100644
--- a/kamelets/github-pullrequest-comment-source.kamelet.yaml
+++ b/kamelets/github-pullrequest-comment-source.kamelet.yaml
@@ -27,6 +27,7 @@ metadata:
camel.apache.org/kamelet.namespace: "Cloud"
labels:
camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "GitHub Pull Request Comments Source"
diff --git a/kamelets/github-pullrequest-source.kamelet.yaml
b/kamelets/github-pullrequest-source.kamelet.yaml
index c06597c36..adad339c5 100644
--- a/kamelets/github-pullrequest-source.kamelet.yaml
+++ b/kamelets/github-pullrequest-source.kamelet.yaml
@@ -27,6 +27,7 @@ metadata:
camel.apache.org/kamelet.namespace: "Cloud"
labels:
camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "GitHub Pull Request Source"
diff --git a/kamelets/github-tag-source.kamelet.yaml
b/kamelets/github-tag-source.kamelet.yaml
index 3b8173641..cd5ea55ba 100644
--- a/kamelets/github-tag-source.kamelet.yaml
+++ b/kamelets/github-tag-source.kamelet.yaml
@@ -27,6 +27,7 @@ metadata:
camel.apache.org/kamelet.namespace: "Cloud"
labels:
camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "GitHub Tag Source"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
index fde7475d2..97890ca30 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -28,6 +28,7 @@ metadata:
camel.apache.org/kamelet.namespace: "AWS"
labels:
camel.apache.org/kamelet.type: "action"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "AWS Translate Action"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-comment-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-comment-source.kamelet.yaml
index a725601ff..66fb80d67 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-comment-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-comment-source.kamelet.yaml
@@ -27,6 +27,7 @@ metadata:
camel.apache.org/kamelet.namespace: "Cloud"
labels:
camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "GitHub Pull Request Comments Source"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-source.kamelet.yaml
index c06597c36..adad339c5 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/github-pullrequest-source.kamelet.yaml
@@ -27,6 +27,7 @@ metadata:
camel.apache.org/kamelet.namespace: "Cloud"
labels:
camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "GitHub Pull Request Source"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/github-tag-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/github-tag-source.kamelet.yaml
index 3b8173641..cd5ea55ba 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/github-tag-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/github-tag-source.kamelet.yaml
@@ -27,6 +27,7 @@ metadata:
camel.apache.org/kamelet.namespace: "Cloud"
labels:
camel.apache.org/kamelet.type: "source"
+ camel.apache.org/kamelet.verified: "true"
spec:
definition:
title: "GitHub Tag Source"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/salesforce/delete-secret.sh
b/tests/camel-kamelets-itest/src/test/resources/salesforce/delete-secret.sh
deleted file mode 100644
index 8ed16e665..000000000
--- a/tests/camel-kamelets-itest/src/test/resources/salesforce/delete-secret.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-# 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.
-
-# delete secret
-oc delete secret salesforce-credentials -n ${CITRUS_NAMESPACE}
diff --git
a/tests/camel-kamelets-itest/src/test/resources/salesforce/direct-to-salesforce-delete-pipe.yaml
b/tests/camel-kamelets-itest/src/test/resources/salesforce/direct-to-salesforce-delete-pipe.yaml
deleted file mode 100644
index dd15cfe4e..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/salesforce/direct-to-salesforce-delete-pipe.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: direct-to-salesforce-delete-pipe
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: timer-source
- properties:
- period: 60000
- message: " { \"sObjectId\": \"${id}\", \"sObjectName\" : \"Contact\" }"
- sink:
- ref:
- apiVersion: camel.apache.org/v1
- kind: Kamelet
- name: salesforce-delete-sink
- properties:
- clientId: "${client_id}"
- clientSecret: "${client_secret}"
- userName: "${userName}"
- password: "${password}"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/salesforce/direct-to-salesforce-update-pipe.yaml
b/tests/camel-kamelets-itest/src/test/resources/salesforce/direct-to-salesforce-update-pipe.yaml
deleted file mode 100644
index 4a31a7326..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/salesforce/direct-to-salesforce-update-pipe.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: direct-to-salesforce-update-pipe
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: timer-source
- properties:
- period: 60000
- message: |-
- {
- "payload": {
- "Phone": "1234567890"
- },
- "sObjectId": "Contact",
- "sObjectName": "Contact"
- }
- sink:
- ref:
- apiVersion: camel.apache.org/v1
- kind: Kamelet
- name: salesforce-update-sink
- properties:
- clientId: "${client_id}"
- clientSecret: "${client_secret}"
- userName: "${userName}"
- password: "${password}"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/salesforce/prepare-secret.sh
b/tests/camel-kamelets-itest/src/test/resources/salesforce/prepare-secret.sh
deleted file mode 100755
index 399faef6c..000000000
--- a/tests/camel-kamelets-itest/src/test/resources/salesforce/prepare-secret.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-# 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.
-
-# create secret from properties file
-oc create secret generic salesforce-credentials
--from-file=salesforce-credentials.properties -n ${CITRUS_NAMESPACE}
-# bind secret to test by name
-oc label secret salesforce-credentials
yaks.citrusframework.org/test=salesforce-sink -n ${CITRUS_NAMESPACE}
diff --git
a/tests/camel-kamelets-itest/src/test/resources/salesforce/salesforce-sink.feature
b/tests/camel-kamelets-itest/src/test/resources/salesforce/salesforce-sink.feature
deleted file mode 100644
index 846bdb7fc..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/salesforce/salesforce-sink.feature
+++ /dev/null
@@ -1,77 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-@ignored
-Feature: Salesforce Kamelet
-
- Background:
- Given variable client_id is "${clientId}"
- Given variable userName is "${userName}"
- Given variable password is "${password}"
- Given variable client_secret is "${clientSecret}"
-
- Given variable token_request is
"grant_type=password&client_id=${client_id}&client_secret=${client_secret}&username=${userName}&password=${password}"
- Given URL: https://login.salesforce.com
- And HTTP request header Content-Type="application/x-www-form-urlencoded"
- And HTTP request body: ${token_request}
- When send POST /services/oauth2/token
- Then verify HTTP response expression:
$.instance_url="@variable(instance_url)@"
- And verify HTTP response expression:
$.access_token="@variable(access_token)@"
- And receive HTTP 200 OK
-
- Scenario: Interact with SalesForce
- Given load Pipe timer-to-salesforce-pipe.yaml
- Then Camel K integration timer-to-salesforce-pipe should be running
- And Camel K integration timer-to-salesforce-pipe should print Routes
startup
-
- Given URL: ${instance_url}
- Then HTTP request header Authorization="Bearer ${access_token}"
- And HTTP request header Content-Type="application/json"
- And HTTP request query parameter q="citrus:urlEncode('SELECT Id FROM
Contact LIMIT 1')"
- When send GET /services/data/v50.0/query/
- Then verify HTTP response expression: $.records[0].Id="@variable(id)@"
- And receive HTTP 200 OK
-
- And load Pipe direct-to-salesforce-update-pipe.yaml
- Then Camel K integration direct-to-salesforce-update-pipe should be running
- And Camel K integration direct-to-salesforce-update-pipe should print
Routes startup
- Then sleep 5000 ms
- Given URL: ${instance_url}
- Then HTTP request header Authorization="Bearer ${access_token}"
- And HTTP request header Content-Type="application/json"
- Given variable query is "SELECT Phone FROM Contact WHERE Id = '${id}'"
- And HTTP request query parameter q="citrus:urlEncode('${query}')"
- When send GET /services/data/v50.0/query/
- Then verify HTTP response expression: $.records[0].Phone="1234567890"
- And receive HTTP 200 OK
-
- When load Pipe direct-to-salesforce-delete-pipe.yaml
- Then Camel K integration direct-to-salesforce-delete-pipe should be running
- And Camel K integration direct-to-salesforce-delete-pipe should print
Routes startup
- Then sleep 5000 ms
-
- Given URL: ${instance_url}
- Given HTTP request header Authorization="Bearer ${access_token}"
- And HTTP request header Content-Type="application/json"
- And HTTP request query parameter q="citrus:urlEncode('${query}')"
- When send GET /services/data/v50.0/query/
- Then verify HTTP response expression: $.totalSize="0"
- And receive HTTP 200 OK
-
- Scenario: Remove Camel-K resources
- Given delete Pipe timer-to-salesforce-pipe
- And delete Pipe direct-to-salesforce-update-pipe
- And delete Pipe direct-to-salesforce-delete-pipe
diff --git
a/tests/camel-kamelets-itest/src/test/resources/salesforce/timer-to-salesforce-pipe.yaml
b/tests/camel-kamelets-itest/src/test/resources/salesforce/timer-to-salesforce-pipe.yaml
deleted file mode 100644
index 11d6eb021..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/salesforce/timer-to-salesforce-pipe.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: timer-to-salesforce-pipe
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: timer-source
- properties:
- period: 60000
- message: "{ \"name\": \"Test\", \"lastname\": \"Tester\", \"Phone\":
\"123\" }"
- sink:
- ref:
- apiVersion: camel.apache.org/v1
- kind: Kamelet
- name: salesforce-create-sink
- properties:
- clientId: "${client_id}"
- clientSecret: "${client_secret}"
- userName: "${userName}"
- password: "${password}"
- sObjectName: "Contact"