Workflow test effects and HTTP fakes
Effects
Section titled “Effects”| Key | Allowed values | Default |
|---|---|---|
| database | isolated | isolated |
| storage | sandbox | sandbox |
| fake | fake | |
| queue | fake | fake |
| notifications | fake | fake |
| http | blocked, fake | blocked |
| site_builders | fake | fake |
| site_deployers | fake | fake |
| api_http | fake | fake |
| save_events | suppress, allow | suppress |
Unknown keys or values fail validation. Tests use an isolated test system/database and sandbox storage. Mail and notification deliveries are faked and captured in an outbox. action/run invocations are recorded (up to 200 runs).
save_events suppress prevents workflow save events; set allow when testing flows that deliberately depend on them. This also affects action/save with triggerEvents.
{"effects":{"mail":"fake","http":"blocked","save_events":"allow"},"http_fakes":[{"url":"https://example.test/*","method":"GET","status":200,"headers":{"Content-Type":"application/json"},"body":{"ok":true}}]}HTTP interception
Section titled “HTTP interception”http_fakes is a list of url patterns (with * wildcards), optional method, status (default 200), headers and body. The first matching entry supplies the response. api/http records requests and uses these entries; no match raises a blocked-by-workflow-test connection error.
Current feat/ai limitation: effects.http installs a Laravel HTTP fake and the api/http integration, but direct Guzzle clients used by ai/* and api/domain* are not reliably blocked or recorded in this audited code line. The broader interception fix described in verification report 07 belongs to a separate branch. Do not assume those elements are isolated by this setting.
Source: BusinessWorkflowTestRunner default/allowed effects, WorkflowTestOutbox, WorkflowApiHttp. See outcome assertions.