Freeman Yue Fang created CAMEL-17954:
----------------------------------------
Summary: IntegrationTest in camel-salesforce-component is broken
Key: CAMEL-17954
URL: https://issues.apache.org/jira/browse/CAMEL-17954
Project: Camel
Issue Type: Test
Components: camel-salesforce, tests
Reporter: Freeman Yue Fang
Firstly, the way to setup salesforce server for integration test is out-of-data.
With the latest ant-salesforce.jar and salesforce developer sever, we don't
need
{code}
<consumerKey>${salesforce.client.id}</consumerKey>
<consumerSecret>${salesforce.client.secret}</consumerSecret>
{code}
in
components/camel-salesforce/it/resources/CamelSalesforceIntegrationTests.connectedApp,
only set salesforce.client.id and salesforce.client.secret in
test-salesforce-login.properties is sufficient to run the test.
When the salesforce developer sever is up, I can pass most part of the
integration test, but got several failures
{code}
[ERROR] Failures:
[ERROR]
org.apache.camel.component.salesforce.BulkApiBatchIntegrationTest.testBatchLifecycle(BulkApiBatchIntegrationTest$BatchTest)
[INFO] Run 1: PASS
[ERROR] Run 2: BulkApiBatchIntegrationTest.testBatchLifecycle:103 Batch did
not succeed ==> expected: <COMPLETED> but was: <FAILED>
[INFO]
[ERROR] BulkApiQueryIntegrationTest.testPkChunking:122 Query did not succeed
==> expected: <NOT_PROCESSED> but was: <FAILED>
[ERROR] BulkApiQueryIntegrationTest.testQueryLifecycle:70 Query did not
succeed ==> expected: <COMPLETED> but was: <FAILED>
[ERROR] BulkApiQueryIntegrationTest.testQueryLifecycle:70 Query did not
succeed ==> expected: <COMPLETED> but was: <FAILED>
[ERROR] Errors:
[ERROR]
org.apache.camel.component.salesforce.CompositeApiCollectionsIntegrationTest.upsert
[ERROR] Run 1: CompositeApiCollectionsIntegrationTest.upsert:158 »
CamelExecution Exception o...
[ERROR] Run 2: CompositeApiCollectionsIntegrationTest.upsert:158 »
CamelExecution Exception o...
[INFO]
[ERROR]
org.apache.camel.component.salesforce.CompositeApiTreeIntegrationTest.shouldSubmitTreeUsingCompositeApi
[ERROR] Run 1:
CompositeApiTreeIntegrationTest.shouldSubmitTreeUsingCompositeApi:87 »
CamelExecution
[ERROR] Run 2:
CompositeApiTreeIntegrationTest.shouldSubmitTreeUsingCompositeApi:87 »
CamelExecution
[INFO]
[ERROR] CompoundTypesIntegrationTest.testTypes:44->doTestTypes:74 »
CamelExecution Exc...
[ERROR]
org.apache.camel.component.salesforce.HttpProxyIntegrationTest.testGetVersions
[INFO] Run 1: PASS
[ERROR] Run 2:
HttpProxyIntegrationTest>CamelTestSupport.setUp:382->CamelTestSupport.doSetUp:528->CamelTestSupport.startCamelContext:754
» FailedToStartComponent
[INFO]
[ERROR]
SalesforceJwtBearerTokenFlowIntegrationTest>CamelTestSupport.setUp:382->CamelTestSupport.doSetUp:528->CamelTestSupport.startCamelContext:754
» FailedToStartComponent
[INFO]
[ERROR] Tests run: 137, Failures: 4, Errors: 5, Skipped: 0
[INFO]
{code}
And they should be related to the DTO mismatch between the server and client,
something like
{code}
No such column 'Description__c' on sobject of type Merchandise__c
{code}
But I have no clue what's wrong here. (I checked the Merchandise__c.java code
and field Description__c actually is there, though this field is nillable. )
--
This message was sent by Atlassian Jira
(v8.20.1#820001)