Loading...
Loading...
Configures an available test provider (e.g. Apex Unit Tests, Code Analyzer, Flow Tests, Provar) on a DevOps Center pipeline via the Connect API, after explicit user confirmation, so the provider's test suites become available for assignment to pipeline stages. Takes a pipelineId and a testProviderId. Use this skill when a provider is available on the pipeline but not yet configured and the user wants to enable it. TRIGGER when: the user wants to configure, enable, set up, or add a test provider on a pipeline, or wants a not-yet-configured provider's suites to become available. DO NOT TRIGGER when: re-syncing an already-configured provider to pick up new suites (use syncing-test-providers), or assigning existing suites to a stage (use managing-suite-assignments).
npx skill4agent add forcedotcom/sf-skills configuring-test-providerchecking-devops-prerequisites| Variable | Source |
|---|---|
| Established in Prerequisite 1 |
| Identified in Prerequisite 4 (pipeline selection) |
| Resolved by fetching the pipeline's test providers (below) |
testProviderIdsf api request rest \
"/services/data/v67.0/connect/devopstesting/pipeline/<pipelineId>/testProviders?status=all" \
--target-org <doce-org-alias>testProviderIdtestProviderNameTest providers for <pipelineName>:
✓ Configured:
- Code Analyzer (63 suites)
- Apex Unit Tests (5 suites)
Available (not yet configured):
- Flow TestsDevopsPipelineTestProvider<pipelineName>managing-suite-assignmentssyncing-test-providersPOST /connect/devops/sync"I'll configureon the<testProviderName>pipeline. This will make its suites available for assignment to stages. Confirm?"<pipelineName>
sf api request rest \
"/services/data/v67.0/connect/devops/pipeline/<pipelineId>/testProvider" \
--method POST \
--body '{"testProviderId": "<testProviderId>"}' \
--target-org <doce-org-alias>"Provideris now configured on the<testProviderName>pipeline. Its suites are available for assignment to stages."<pipelineName>
managing-suite-assignmentsPOST .../pipeline/<pipelineId>/testProviderDevopsPipelineTestProvidersyncing-test-providersPOST /connect/devops/syncDevopsPipelineTestProvider| Status | User-facing message |
|---|---|
| 400 | "The request was invalid. Check that the provider ID and pipeline ID are correct." |
| 403 | "You don't have permission to configure test providers on this pipeline." |
| 404 | "The pipeline or test provider was not found." |
| 409 | "That provider appears to already be configured on this pipeline. To pick up new suites, re-sync it instead." |
| 500 | "A server error occurred. Try again in a few minutes." |
checking-devops-prerequisitessyncing-test-providersmanaging-suite-assignmentsrecommending-devops-tests