Replaced gherkin tables by json documents in requests and responses of list features. Fix typos in delete/list_order feature

This commit is contained in:
Héctor Hurtado
2019-08-21 10:16:03 +02:00
parent fe9534fe51
commit d7813f6487
2 changed files with 29 additions and 12 deletions
@@ -25,6 +25,23 @@ Feature: Listing routes in a Kapow! server
Then I get 200 as response code
And I get "OK" as response phrase
And I get a list with the following elements:
| method | url_pattern | entrypoint | command | index | id |
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body | 0 | * |
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | 1 | * |
"""
[
{
"method": "GET",
"url_pattern": "/listRootDir",
"entrypoint": "/bin/sh -c",
"command": "ls -la / | response /body",
"index": 0,
"id": "*"
},
{
"method": "GET",
"url_pattern": "/listDir/:dirname",
"entrypoint": "/bin/sh -c",
"command": "ls -la /request/params/dirname | response /body",
"index": 1,
"id": "*"
}
]
"""