Created
May 16, 2017 07:00
-
-
Save nottyo/6cfa60d8d510a2c01f97272314cbbc50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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