Files
kapow/spec/test/features/control/get/success.feature
Roberto Abdelkader Martínez Pérez 58a800e5e9 Replace request/response with new commands
2019-09-05 08:40:59 +02:00

26 lines
973 B
Gherkin

Feature: Retrieve route details in Kapow! server.
Users can retrieve route details from the server
by specifying its id.
Scenario: Retrieve route details.
Get route details by id.
Given I have a Kapow! server with the following routes:
| method | url_pattern | entrypoint | command |
| 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
And I get the following response body:
"""
{
"method": "GET",
"url_pattern": "/foo",
"entrypoint": "/bin/sh -c",
"command": "ls -la / | kapow set /response/body",
"index": 0,
"id": ANY
}
"""