Arm a fault
rig.fault.addArm deterministic interference on one resource of an active run: delay, duplicate, drop, reorder or change the body of a callback forwarded to a connector route, or make a mock answer a chosen status, reset the connection, throttle its body or cut it short. Fires on the next matching observation, count times or until removed; every firing is a fault.injected event on the timeline. Use to prove the application survives duplicates, delays, reordering, corrupted payloads and dependency failures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| batch | No | For reorder: deliveries held before they are released last-first. | |
| bytes | No | For partial_response: bytes of the body sent before the connection closes; 0 sends the headers alone. | |
| count | No | How many times it fires; default once. A reorder fires once per batch. | |
| delay | No | For delay: 1ms to 30s, such as "5s". | |
| copies | No | For duplicate: extra deliveries; default 1. | |
| run_id | Yes | ||
| status | No | For status_override. | |
| resource | Yes | delay, duplicate, drop, reorder and payload_mutation need a callback with a connector route; status_override, connection_reset, bandwidth_limit and partial_response need a mock_http. | |
| mutations | No | For payload_mutation: changes to the forwarded body, in order. | |
| persistent | No | Fire until removed or the run ends. | |
| bytes_per_second | No | For bandwidth_limit: the rate the mock sends its body at; capped so the body takes at most 30s. |