Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17954

IntegrationTest in camel-salesforce-component is broken



    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.17.0
    • camel-salesforce, tests
    • None
    • Unknown


      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 can't have


      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

      [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>
      [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...
      [ERROR] org.apache.camel.component.salesforce.CompositeApiTreeIntegrationTest.shouldSubmitTreeUsingCompositeApi
      [ERROR]   Run 1: CompositeApiTreeIntegrationTest.shouldSubmitTreeUsingCompositeApi:87 » CamelExecution
      [ERROR]   Run 2: CompositeApiTreeIntegrationTest.shouldSubmitTreeUsingCompositeApi:87 » CamelExecution
      [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
      [ERROR]   SalesforceJwtBearerTokenFlowIntegrationTest>CamelTestSupport.setUp:382->CamelTestSupport.doSetUp:528->CamelTestSupport.startCamelContext:754 » FailedToStartComponent
      [ERROR] Tests run: 137, Failures: 4, Errors: 5, Skipped: 0

      And they should be related to the DTO mismatch between the server and client, something like

      No such column 'Description__c' on sobject of type Merchandise__c

      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. )


        1. Screen Shot 2022-04-13 at 12.18.33 PM.png
          450 kB
          Freeman Yue Fang
        2. Screen Shot 2022-04-13 at 12.19.03 PM.png
          190 kB
          Freeman Yue Fang
        3. Screen Shot 2022-04-13 at 12.19.37 PM.png
          219 kB
          Freeman Yue Fang

        Issue Links



              jeremyross Jeremy Ross
              ffang Freeman Yue Fang
              0 Vote for this issue
              2 Start watching this issue