jamesnetherton opened a new pull request, #31163: URL: https://github.com/apache/camel/pull/31163
[CAMEL-27891](https://issues.apache.org/jira/browse/CAMEL-27891) The SF CLI based integration test setup (CAMEL-22782) no longer worked against current orgs and SF CLI versions: the metadata deploy failed on the generated connected app, and the stored refresh token was empty. - Stop generating and deploying the `CamelSalesforceIntegrationTests` connected app, which Salesforce rejects and the tests do not use (they log in with the SF CLI's own `PlatformCLI` app). Delete the app file and its credentials left by earlier versions, as they hold a secret. - Read the client id, client secret and refresh token with `sf org auth show-sfdx-auth-url`, as `sf org display` now redacts the auth URL. Also store the username, which the approval and composite batch tests need. - Remove the username/password mode. To use an existing org, log in with `sf org login web` and set it as the local `target-org`. - Fail early when there is no refresh token and nothing else provides credentials, or when a password is also set without an auth type (before creating a scratch org). The pom passes `-Dsalesforce.password` and `-Dsalesforce.auth.type` to the script for this check. - Make the stored credentials readable by the user only. - Skip `SalesforceClientCredentialsFlowManualIT` unless the user sets a client secret, as the setup no longer provides an app for that flow. - Update the READMEs and the sample login properties. With this, the full `*ManualIT` suite runs against a scratch org created by the script, apart from two existing failures in the component that are tracked separately. _Claude Code on behalf of jamesnetherton_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
