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
@@ -32,7 +32,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listVarDir", "url_pattern": "/listVarDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body", "command": "ls -la /var | response /body",
"index": "0", "index": 0,
"id": "*" "id": "*"
}, },
{ {
@@ -40,7 +40,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listEtcDir", "url_pattern": "/listEtcDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /etc | response /body", "command": "ls -la /etc | response /body",
"index": "1", "index": 1,
"id": "*" "id": "*"
}, },
{ {
@@ -48,7 +48,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listDir/:dirname", "url_pattern": "/listDir/:dirname",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /request/params/dirname | response /body", "command": "ls -la /request/params/dirname | response /body",
"index": "2", "index": 2,
"id": "*" "id": "*"
} }
] ]
@@ -73,7 +73,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listRootDir", "url_pattern": "/listRootDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la / | response /body", "command": "ls -la / | response /body",
"index": "0", "index": 0,
"id": "*" "id": "*"
}, },
{ {
@@ -81,7 +81,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listVarDir", "url_pattern": "/listVarDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body", "command": "ls -la /var | response /body",
"index": "1", "index": 1,
"id": "*" "id": "*"
}, },
{ {
@@ -89,7 +89,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listEtcDir", "url_pattern": "/listEtcDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /etc | response /body", "command": "ls -la /etc | response /body",
"index": "2", "index": 2,
"id": "*" "id": "*"
} }
] ]
@@ -115,7 +115,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listRootDir", "url_pattern": "/listRootDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la / | response /body", "command": "ls -la / | response /body",
"index": "0", "index": 0,
"id": "*" "id": "*"
}, },
{ {
@@ -123,7 +123,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listEtcDir", "url_pattern": "/listEtcDir",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /etc | response /body", "command": "ls -la /etc | response /body",
"index": "1", "index": 1,
"id": "*" "id": "*"
}, },
{ {
@@ -131,7 +131,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
"url_pattern": "/listDir/:dirname", "url_pattern": "/listDir/:dirname",
"entrypoint": "/bin/sh -c", "entrypoint": "/bin/sh -c",
"command": "ls -la /request/params/dirname | response /body", "command": "ls -la /request/params/dirname | response /body",
"index": "2", "index": 2,
"id": "*" "id": "*"
} }
] ]
@@ -25,6 +25,23 @@ Feature: Listing routes in a Kapow! server
Then I get 200 as response code Then I get 200 as response code
And I get "OK" as response phrase And I get "OK" as response phrase
And I get a list with the following elements: 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": "*"
}
]
"""