Clone Tools
  • last updated 28 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
CAMEL-10857 Make Salesforce integration tests w...

...ork with new Salesforce instance

This changes the way Salesforce environment is setup for integration

tests are, previously one would need to manually configure the instance

while now it is done automatically by using _Salesforce Migration Tool_.

This tool needs to be downloaded from Salesforce[1] and placed in the

`components/camel-salesforce/it/resources/migration-tool/` directory.

Definitions for currently used packaged applications, approval process,

classes, test documents, layouts, field customizations and custom

objects, permission sets, profiles, test reports and tabs are provided.

Also a connected application definition is provided to facilitate the

setup.

Tests were rearranged into two groups, those that can be freely run in

random order and in parallel, and those that need to be run sequentially

and independent of each other (marked with Standalone category).

Tests were refactored to make them more stable and easier to maintain.

Mostly to introduce parallelism in parameterised tests and to perform

proper setup and cleanup (although cleanup is still an issue with some

test).

[1] https://developer.salesforce.com/page/Force.com_Migration_Tool

    • -0
    • +24
    ./camel/component/salesforce/Standalone.java
  1. … 70 more files in changeset.
CAMEL-10849: Salesforce: subscription channel ...

...created per component

Added option `replayId` to the Salesforce endpoint, this is taken in

preference of all other *replayId options. Now you can use `replayId`

parameter in the endpoint uri, e.g:

from("salesforce:AccountUpdates?replayId=-1")

  1. … 3 more files in changeset.
CAMEL-10795: PingCheck API - includes CAMEL-10923, CAMEL-10924

  1. … 57 more files in changeset.
CAMEL-10886: Support Limits API response from S...

...alesforce v39.0

Since version v39.0 (Spring 2017) the Limits API returns along with

`max` and `remaining` additional JSON properties, per connected

application, also containing `max` and `remaining`.

This changes the deserialization of Limits JSON response to include

those per-application Limits.

  1. … 2 more files in changeset.
CAMEL-10849: Salesforce: subscription channel ...

...created per component

Changes the `replayId` value from `Integer` to `Long`. The range of the

`replayId` is explicitly specified in the Salesforce documentation it's

safer to make it as big as can be.

  1. … 5 more files in changeset.
CAMEL-10849: Salesforce: subscription channel ...

...created per component

This changes the way configuration, specifically `initialReplayIdMap`

and `defaultReplayId` are configured on the CometD client.

The Bayeux CometD client is left at the Component level, this is to

limit the number of streaming clients connected to Salesforce as there

are limits on those.

The SubscriptionHelper was previously tied to the topic it subscribed to

on creation, removes that constraint. This allows per-endpoint

customization of the client (subscriptions) on subscription from

consumers.

  1. … 5 more files in changeset.