Commit cc4790f
committed
CAMEL-22782: camel-salesforce: Modernize integration test setup with SF CLI
Migrate from Ant-based deployment to Salesforce CLI with improved
authentication, automatic environment setup, and better credential management.
Key changes:
Authentication:
- Use refresh token flow with SF CLI's built-in PlatformCLI connected app
- Automatically extract refresh token from SF CLI's stored authentication
- No security token required for scratch orgs
Credential Management:
- Store credentials in git-ignored .local/ directory
- Separate version-controlled config/ from user-specific .local/ files
- Auto-generate connected app credentials on first deployment
Automatic Setup:
- Assign Hard_Delete_Permission_Set during deployment
- Deactivate standard duplicate rules (Account, Contact, Lead)
- Enable username/password OAuth flow in scratch org definition1 parent 2ee7855 commit cc4790f
File tree
76 files changed
+1171
-1014
lines changed- components/camel-salesforce
- camel-salesforce-component
- src
- main/java/org/apache/camel/component/salesforce
- internal
- test/java/org/apache/camel/component/salesforce
- it/resources
- migration-tool
- salesforce
- applications
- classes
- connectedApps
- documents
- Test_Documents
- objects
- platformEventChannelMembers
- reports
- tabs
- sfdx-project
- config
- salesforce-source/main/default
- applications
- approvalProcesses
- classes
- documents
- Test_Documents
- duplicateRules
- layouts
- objects
- Account
- fields
- CamelEventMessage__e
- fields
- CamelEventNote__e
- fields
- Invoice__c
- fields
- listViews
- Line_Item__c
- fields
- recordTypes
- Merchandise__c
- fields
- listViews
- TestEvent__e
- fields
- permissionsets
- platformEventChannelMembers
- reports
- Test_Reports
- tabs
- docs/user-manual/modules/ROOT/pages
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+1171
-1014
lines changedLines changed: 32 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | | - | |
344 | | - | |
| 343 | + | |
345 | 344 | | |
346 | | - | |
| 345 | + | |
| 346 | + | |
347 | 347 | | |
348 | | - | |
349 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
350 | 351 | | |
351 | | - | |
| 352 | + | |
| 353 | + | |
352 | 354 | | |
353 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 359 | + | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | 389 | | |
412 | 390 | | |
413 | 391 | | |
414 | | - | |
415 | | - | |
| 392 | + | |
| 393 | + | |
416 | 394 | | |
417 | 395 | | |
418 | 396 | | |
| 397 | + | |
419 | 398 | | |
420 | | - | |
| 399 | + | |
421 | 400 | | |
422 | | - | |
423 | 401 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
451 | 415 | | |
452 | 416 | | |
453 | 417 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 418 | | |
462 | 419 | | |
463 | 420 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
| |||
0 commit comments