capabilities.work

Worker Deploy and Test

A 3-step recipe with JFrog. We can help you get access.

Recipe · 3 steps

Worker Deploy and Test

with JFrog

Create a worker, test it, and enable it when the test passes.

  1. Create the worker from the supplied TypeScript source bound to the given platform event.
  2. Run the worker against a test payload to validate its behaviour before enabling it.
  3. Enable the worker now that the test execution passed.
What you'll need to have ready
  • workerKey: The unique key for the worker.
  • sourceCode: The TypeScript source code for the worker.
  • action: The platform event that triggers the worker (e.g. AFTER_CREATE).
  • testAction: The event action to simulate in the test run.
  • testData: The test payload data for the simulated event.
For your developer

Arazzo workflow jfrog:deploy-and-test-worker, 3 operations: createWorker → testWorker → enableWorker. Specs on APIs.io.