Skip to content

Example Mock Requests and Responses

MarkAbrams edited this page Feb 7, 2024 · 5 revisions

The testing framework will replace Call a Local Function and Invoke Workflow actions, and actions using built-in service provider connectors, with a HTTP action that is configured to call a mock HTTP server that is managed by the testing framework. This allows the action to run independently of any external dependency.

The following sections show examples of the requests that are generated by the replacement HTTP action so that you can understand how to assert the contents of the requests that are created and sent to the mock HTTP server. There are also examples of the responses that you can create in the test for various success and failure scenarios.

Replacing an action with a HTTP action does not change the behaviour of the workflow.

Clone this wiki locally