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:
@@ -32,7 +32,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listVarDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /var | response /body",
|
||||
"index": "0",
|
||||
"index": 0,
|
||||
"id": "*"
|
||||
},
|
||||
{
|
||||
@@ -40,7 +40,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listEtcDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /etc | response /body",
|
||||
"index": "1",
|
||||
"index": 1,
|
||||
"id": "*"
|
||||
},
|
||||
{
|
||||
@@ -48,7 +48,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listDir/:dirname",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /request/params/dirname | response /body",
|
||||
"index": "2",
|
||||
"index": 2,
|
||||
"id": "*"
|
||||
}
|
||||
]
|
||||
@@ -73,7 +73,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listRootDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la / | response /body",
|
||||
"index": "0",
|
||||
"index": 0,
|
||||
"id": "*"
|
||||
},
|
||||
{
|
||||
@@ -81,7 +81,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listVarDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /var | response /body",
|
||||
"index": "1",
|
||||
"index": 1,
|
||||
"id": "*"
|
||||
},
|
||||
{
|
||||
@@ -89,7 +89,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listEtcDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /etc | response /body",
|
||||
"index": "2",
|
||||
"index": 2,
|
||||
"id": "*"
|
||||
}
|
||||
]
|
||||
@@ -115,7 +115,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listRootDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la / | response /body",
|
||||
"index": "0",
|
||||
"index": 0,
|
||||
"id": "*"
|
||||
},
|
||||
{
|
||||
@@ -123,7 +123,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listEtcDir",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /etc | response /body",
|
||||
"index": "1",
|
||||
"index": 1,
|
||||
"id": "*"
|
||||
},
|
||||
{
|
||||
@@ -131,7 +131,7 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
|
||||
"url_pattern": "/listDir/:dirname",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /request/params/dirname | response /body",
|
||||
"index": "2",
|
||||
"index": 2,
|
||||
"id": "*"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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": "*"
|
||||
}
|
||||
]
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user