Skip to content

Workflow test effects and HTTP fakes

KeyAllowed valuesDefault
databaseisolatedisolated
storagesandboxsandbox
mailfakefake
queuefakefake
notificationsfakefake
httpblocked, fakeblocked
site_buildersfakefake
site_deployersfakefake
api_httpfakefake
save_eventssuppress, allowsuppress

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_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.