Added delete/success and delete/error_notfound features

This commit is contained in:
Héctor Hurtado
2019-08-17 10:28:47 +02:00
parent baf8217a14
commit ba9e80e620
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,13 @@
Feature: Fail to delete a route in Kapow! server.
When trying to delete a route in the server, if it
does no exists the server respons with an error.
Scenario: Delete a non-existing route.
A request of removing a non-existing route
will trigger a not found error.
Given I have a just started Kapow! server
When I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"
Then I get not found as response code
And I get "Not Found" as response phrase
And I get an empty response body
@@ -0,0 +1,13 @@
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 running Kapow! server
And It has a route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"
When I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"
Then I get ok as response code
And I get "OK" as response phrase
And I get an empty response body