Changed delete/success feature to remove id references

This commit is contained in:
Héctor Hurtado
2019-08-21 13:17:10 +02:00
parent 308ba58479
commit 6261f5aa59
@@ -5,9 +5,11 @@ Feature: Delete routes in Kapow! server.
Scenario: Delete a route. Scenario: Delete a route.
Routes are removed from the sever by specifying their id. Routes are removed from the sever by specifying their id.
Given I have a running Kapow! server Given I have a Kapow! server whith the following routes:
And It has a route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" | method | url_pattern | entrypoint | command |
When I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" | 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 200 as response code Then I get 200 as response code
And I get "OK" as response reason phrase And I get "OK" as response reason phrase
And I get an empty response body And I get an empty response body