Implementing 204 on delete and removing unnecessary steps

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-23 12:01:51 +02:00
parent 93a3562c04
commit 8752f419b5
3 changed files with 9 additions and 21 deletions
@@ -18,12 +18,8 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
will be decreased by one.
When I delete the first route inserted
Then I get 200 as response code
And I get "OK" as response reason phrase
When I request a routes listing
Then I get 200 as response code
And I get "OK" as response reason phrase
And I get a list with the following elements:
And I request a routes listing
Then I get a list with the following elements:
"""
[
{
@@ -58,12 +54,8 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
maintain their relative order and indexes.
When I delete the last route inserted
Then I get 200 as response code
And I get "OK" as response reason phrase
When I request a routes listing
Then I get 200 as response code
And I get "OK" as response reason phrase
And I get a list with the following elements:
And I request a routes listing
Then I get a list with the following elements:
"""
[
{
@@ -99,12 +91,8 @@ Feature: Routes auto-ordering after deleting in a Kapow! server.
following routes will be decreased by one.
When I delete the second route inserted
Then I get 200 as response code
And I get "OK" as response reason phrase
When I request a routes listing
Then I get 200 as response code
And I get "OK" as response reason phrase
And I get a list with the following elements:
And I request a routes listing
Then I get a list with the following elements:
"""
[
{
@@ -10,5 +10,5 @@ Feature: Delete routes in Kapow! server.
| 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
And I get "OK" as response reason phrase
Then I get 204 as response code
And I get "No Content" as response reason phrase