Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
CAMEL-11869: Upgrade mockito-core to 2.11.0 for camel-atmosphere-websocket, camel-salesforce-component and camel-script

  1. … 5 more files in changeset.
CAMEL-11919: Salesforce REST API request header...

...s not included in update,upsert,create and query operations

This allows setting Salesforce specific headers on the inbound Camel

message. Supported headers are those that start with `Sforce` or

`x-sfdc` and are need to be of a type that can be converted to a array

of String objects: either String, String[] or collection of String

objects.

Support has been added to set headers on all operations and it is up to

the client to set them in a manner that makes sense for the specific

operation and Salesforce object.

Correspondingly any response `Sforce` headers can now be retrieved from

the outbound message headers.

  1. … 22 more files in changeset.
CAMEL-11667: Support Metadata component extension

This simplifies and unifies the two modes of metadata gathering. Now if

`sObjectName` is specified a (very simple) JSON schema is returned

rather than custom JSON object.

  1. … 2 more files in changeset.
CAMEL-11667: Support Metadata component extension

Adds support for `MetaDataExtension` in the Salesforce component.

Currently two kinds of metadata are supported:

- listing Salesforce Object types

- listing fields of Salesforce object type

For Salesforce object types object name and label are returned and for

Salesforce object fields name and field type are returned.

New facade to use low level Salesforce RestClient was added

`SalesforceClientTemplate` intended to be used from extensions such as

this and the existing `ComponentVerifierExtension` was refactored to use

it.

  1. … 13 more files in changeset.
CAMEL-11629: Cleanup SalesforceComponentVerifie...

...rTest

Splits the SalesforceComponentVerifier test into integration

(connectivity) and unit test (parameter). The integration test now

relies on `LoginConfigHelper` that reads its configuration from

`salesforce-test-login.properties`.

    • -0
    • +137
    ./camel/component/salesforce/SalesforceComponentVerifierExtensionIntegrationTest.java
Fixes Checkstyle issues in Salesforce component

  1. … 1 more file in changeset.
CAMEL-10743: Fixed CS errors

  1. … 2 more files in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce Streaming API

  1. … 1 more file in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce Streaming API

  1. … 1 more file in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce REST APIs

    • -0
    • +240
    ./camel/component/salesforce/RawPayloadTest.java
  1. … 3 more files in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce REST APIs

    • -0
    • +240
    ./camel/component/salesforce/RawPayloadTest.java
  1. … 3 more files in changeset.
CAMEL-10744: Added utility APIs in Salesforce JsonUtils to generate JSON schema from SObjectDescription, added required modules to Karaf camel-salesforce feature

    • -0
    • +56
    ./camel/component/salesforce/api/utils/JsonUtilsTest.java
  1. … 4 more files in changeset.
CAMEL-10744: Added utility APIs in Salesforce JsonUtils to generate JSON schema from SObjectDescription, added required modules to Karaf camel-salesforce feature

    • -0
    • +56
    ./camel/component/salesforce/api/utils/JsonUtilsTest.java
  1. … 4 more files in changeset.
CAMEL-11550: Component extensions

    • -0
    • +183
    ./camel/component/salesforce/SalesforceComponentVerifierExtensionTest.java
  1. … 97 more files in changeset.
CAMEL-11402 Logic error in authentication type ...

...determination

This fixes the logic error and adds a test to confirm.

  1. … 1 more file in changeset.
CAMEL-11149: SPI - Allow to plugin different headers map implementation

  1. … 42 more files in changeset.
Code cleanup: removed unused imports

  1. … 43 more files in changeset.
CAMEL-11233 Allow overriding the setting of ins...

...tanceUrl

Added a new property `instanceUrl` to override Salesforce returned

value (`instance_url`).

  1. … 6 more files in changeset.
CAMEL-11212 Don't allow Salesforce HTTP client ...

...to stop with outstanding requests

This introduces a `Phaser` to await for any in-flight requests to

complete before the client is allowed to stop.

This should not block as long as the

`BufferingResponseListener::onComplete` is invoked at the end of every

request. And that is guaranteed by the `CompleteListener::onComplete`

contract.

  1. … 1 more file in changeset.
Fix test cases

  1. … 1 more file in changeset.
CAMEL-11095 Enumerate all OperationName in @Uri...

...Path of operationName

This adds all supported operation names to the `enums` parameter of the

`@UriPath` parameter of the `operationName` field, and thus makes the

values that end up in the Camel Catalog match the values the component

expects. Up to now, the enum constants from `OperationName` would be

added to the catalog which is different from what the component expects

as the component expects the value in the `value` field of the

`OperationName` enum.

    • -0
    • +48
    ./camel/component/salesforce/SalesforceEndpointTest.java
  1. … 1 more file in changeset.
Polished ComponentVerifier interface

The following major changes are suggested:

* Using of interfaces and class constants instead of string constants for error fields. This has the advantage of being typesafe but still extensible (custom fields can be easily added)

* Renamed Error to VerificationError as it conflicts with java.lang.Error which is allways imported

* Documentation to the interface

* Consolidation of provided constants, together with @lburgazzoli

* Adapted the using components (mainly http, http4, twitter, salesforce)

  1. … 23 more files in changeset.
CAMEL-10846 Handle 404 situations more gracefully

    • -0
    • +62
    ./camel/component/salesforce/NotFoundIntegrationTest.java
  1. … 13 more files in changeset.
CAMEL-11075 AbstractSalesforceTestBase::doCreat...

...eRouteBuilder should be optional

Makes the `doCreateRouteBuilder` optional, not abstract so that the

integration tests that do not need routes do not need to provide an

empty method.

CAMEL-11068 Remove deprecated usage from Salesf...

...orce component

Replaced deprecated usage and removed EndpointCompleter implementation.

  1. … 4 more files in changeset.
Fixing checkstyle

One of this days I'll learn to do -Psourcecheck before pushing

  1. … 2 more files in changeset.
CAMEL-10938 Camel Salesforce : add an option to...

...retrieve login information for testing purpose from env var or

system properties

This introduces `authenticationType` Salesforce component property that

can be used to force, as opposed auto-determine authentication flow the

component should perform.

It ties into the integration tests setup as it enables tests to be run

with any supported authentication type.

More to the point of the initial JIRA, this change enables configuring

the integration tests using environment variables, Java system

properties or the established `test-salesforce-login.properties` file.

The syntax in the `test-salesforce-login.properties` has changed

slightly to better accomodate the environment variable syntax: camelcase

was dropped in favor of dot notation.

    • -56
    • +106
    ./camel/component/salesforce/LoginConfigHelper.java
  1. … 10 more files in changeset.
ComponentVerifier: support validation of group of options

  1. … 5 more files in changeset.
Fixing checkstyle issues

  1. … 1 more file in changeset.
CAMEL-11013 Support OAuth 2.0 JWT Bearer Token ...

...Flow

This gives the users ability to use OAuth 2.0 JWT Bearer Token Flow[1]

to gain access tokens from Salesforce using JWT token signed by a

certificate defined on the Salesforce connected application.

[1] https://help.salesforce.com/articleView?id=remoteaccess_oauth_jwt_flow.htm

    • -0
    • +56
    ./camel/component/salesforce/SalesforceJwtBearerTokenFlowIntegrationTest.java
  1. … 9 more files in changeset.