Skip to content

Instantly share code, notes, and snippets.

@nottyo
Created May 16, 2017 07:00
Show Gist options
  • Save nottyo/6cfa60d8d510a2c01f97272314cbbc50 to your computer and use it in GitHub Desktop.
Save nottyo/6cfa60d8d510a2c01f97272314cbbc50 to your computer and use it in GitHub Desktop.
{
"port": 4546,
"protocol": "http",
"stubs": [
{
"responses": [
{
"is": {
"body": {
"text": "you should see this message 2 times."
},
"headers": {
"content-type": "application/json"
}
},
"_behaviors": {
"repeat": 2
}
},
{
"is": {
"body": {
"text": "then you should see this message."
},
"headers": {
"content-type": "application/json"
}
}
}
],
"predicates": [
{
"equals": {
"method": "POST",
"path": "/test",
"body": {
"repeat": true
}
}
}
]
},
{
"responses": [
{
"is": {
"body": {
"text": "default mock returned."
},
"headers": {
"content-type": "application/json"
}
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment