This is an automated email from the ASF dual-hosted git repository. zbendhiba pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push: new 3f0f0c7 Update Salesforce Integration tests to Salesforce API upgrade 3f0f0c7 is described below commit 3f0f0c7d1ece58e46c50a8e36f8728e98c6fba13 Author: Zineb Bendhiba <bendhiba.zi...@gmail.com> AuthorDate: Tue Jan 18 12:46:30 2022 +0100 Update Salesforce Integration tests to Salesforce API upgrade --- integration-tests/salesforce/README.adoc | 2 +- .../camel/quarkus/component/salesforce/SalesforceIntegrationTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-tests/salesforce/README.adoc b/integration-tests/salesforce/README.adoc index 2e96395..703636c 100644 --- a/integration-tests/salesforce/README.adoc +++ b/integration-tests/salesforce/README.adoc @@ -11,7 +11,7 @@ Next create a new 'Connected App' from the app manager page. You may need to adj Next create a document named 'test'. -Next create a new Platform Event named `TestEvent`. Set Publish Behavior to `Publish Immediately`. Save and make sure the API name is `TestEvent__e`. Update the Platform Event, add a new Custom Field of type `Text`, named `Test_Field`. Set its length to 30. Save and make sure the API name of the field is `Test_Field__c`. +Next create a new Platform Event named `TestEvent` by visiting the Integrations -> Platform Events. Set Publish Behavior to `Publish Immediately`. Update the Platform Event, add a new Custom Field of type `Text`, named `Test_Field`. Set its length to 30. You can find the app OAuth settings by choosing the 'view' option from the app manager page. Then set the following environment variables. diff --git a/integration-tests/salesforce/src/test/java/org/apache/camel/quarkus/component/salesforce/SalesforceIntegrationTest.java b/integration-tests/salesforce/src/test/java/org/apache/camel/quarkus/component/salesforce/SalesforceIntegrationTest.java index 1e8f3d2..e1ee1fc 100644 --- a/integration-tests/salesforce/src/test/java/org/apache/camel/quarkus/component/salesforce/SalesforceIntegrationTest.java +++ b/integration-tests/salesforce/src/test/java/org/apache/camel/quarkus/component/salesforce/SalesforceIntegrationTest.java @@ -123,8 +123,8 @@ public class SalesforceIntegrationTest { .contentType(ContentType.JSON) .get("/salesforce/platform/event") .asString(); - assertTrue(event.contains("channel=/event/TestEvent__e")); - assertTrue(event.contains("Test_Field__c=data")); + assertTrue(event.contains("/event/TestEvent__e")); + assertTrue(event.contains("Test_Field__c")); } }