bots: Add HTTP status code support to mock http conversations.
This commit is contained in:
parent
400d46a532
commit
ea3dd2bd87
4 changed files with 39 additions and 28 deletions
26
bots/giphy/fixtures/test_1.json
Normal file
26
bots/giphy/fixtures/test_1.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"request": {
|
||||
"api_url": "http://api.giphy.com/v1/gifs/translate",
|
||||
"params": {
|
||||
"s": "Hello",
|
||||
"api_key": "12345678"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"meta": {
|
||||
"status": 200
|
||||
},
|
||||
"data": {
|
||||
"images": {
|
||||
"original": {
|
||||
"url": "https://media4.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"response-headers": {
|
||||
"status": 200,
|
||||
"ok": true,
|
||||
"content-type": "application/json; charset=utf-8"
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"api_url": "http://api.giphy.com/v1/gifs/translate",
|
||||
"params": {
|
||||
"s": "Hello",
|
||||
"api_key": "12345678"
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"meta": {
|
||||
"status": 200
|
||||
},
|
||||
"data": {
|
||||
"images": {
|
||||
"original": {
|
||||
"url": "https://media4.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue