Change URL examples by metasyntactic variable names (RFC3092)
This commit is contained in:
@@ -22,8 +22,8 @@ Feature: Listing routes in a Kapow! server.
|
||||
|
||||
Given I have a Kapow! server with the following routes:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
|
||||
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||
When I request a routes listing
|
||||
Then I get 200 as response code
|
||||
And I get "OK" as response reason phrase
|
||||
@@ -32,7 +32,7 @@ Feature: Listing routes in a Kapow! server.
|
||||
[
|
||||
{
|
||||
"method": "GET",
|
||||
"url_pattern": "/listRootDir",
|
||||
"url_pattern": "/foo",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la / | response /body",
|
||||
"index": 0,
|
||||
@@ -40,7 +40,7 @@ Feature: Listing routes in a Kapow! server.
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"url_pattern": "/listDir/{dirname}",
|
||||
"url_pattern": "/qux/{dirname}",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la /request/params/dirname | response /body",
|
||||
"index": 1,
|
||||
|
||||
Reference in New Issue
Block a user