Replace request/response with new commands
This commit is contained in:
@@ -7,8 +7,8 @@ Feature: Retrieve route details in Kapow! server.
|
||||
|
||||
Given I have a Kapow! server with the following routes:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||
| GET | /foo | /bin/sh -c | ls -la / \| kapow set /response/body |
|
||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| kapow set /response/body |
|
||||
When I get the first route
|
||||
Then I get 200 as response code
|
||||
And I get "OK" as response reason phrase
|
||||
@@ -18,7 +18,7 @@ Feature: Retrieve route details in Kapow! server.
|
||||
"method": "GET",
|
||||
"url_pattern": "/foo",
|
||||
"entrypoint": "/bin/sh -c",
|
||||
"command": "ls -la / | response /body",
|
||||
"command": "ls -la / | kapow set /response/body",
|
||||
"index": 0,
|
||||
"id": ANY
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user