Files
kapow/spec/test/features/control/delete/success.feature
2019-08-23 12:01:51 +02:00

15 lines
701 B
Gherkin

Feature: Delete routes in Kapow! server.
Delete routes allow users to remove non-desired
routes from the server.
Scenario: Delete a route.
Routes are removed from the sever by specifying their id.
Given I have a Kapow! server whith 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 |
When I delete the first route
Then I get 204 as response code
And I get "No Content" as response reason phrase