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

15 lines
709 B
Gherkin

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