-
Notifications
You must be signed in to change notification settings - Fork 0
Reference: stub mapping responses
Nicolas edited this page Jan 21, 2025
·
2 revisions
While each response style has some different arguments, all responses are controlled by the command
enum in the response.
{
"response": {
"jsonBody": {
"command": "COMPLETE",
"variables": {
"hello": "world"
}
}
},
"metadata": {
"zeebemock": {
"enabled": true,
"jobType": "COMPLETE_WORKER"
}
}
}
{
"response": {
"jsonBody": {
"command": "FAILURE",
"retries": 0,
"errorMessage": "Failure message"
}
},
"metadata": {
"zeebemock": {
"enabled": true,
"jobType": "FAIL_WORKER"
}
}
}
{
"response": {
"jsonBody": {
"command": "THROW_ERROR",
"errorCode": "MOCKED",
"errorMessage": "Error thrown by worker"
}
},
"metadata": {
"zeebemock": {
"enabled": true,
"jobType": "THROW_WORKER"
}
}
}