Fixed some formating and naming issues

This commit is contained in:
Héctor Hurtado
2019-08-20 10:51:24 +02:00
parent 2b31b2b9f0
commit b86454179a
6 changed files with 84 additions and 84 deletions
@@ -1,5 +1,4 @@
Feature: Listing routes in a Kapow! server
Listing routes allow users to know what commands are
available on a Kapow! server. The List endpoint returns
a list of the routes the server has configured.
@@ -11,8 +10,8 @@ Feature: Listing routes in a Kapow! server
Given I have a just started Kapow! server
When I request a routes listing
Then I get 200 as response code
And I get "OK" as response phrase
And I get an empty list
And I get "OK" as response phrase
And I get an empty list
Scenario: Listing routes on a server with routes loaded.
After some route creation/insertion operations the server
@@ -24,8 +23,8 @@ Feature: Listing routes in a Kapow! server
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
When I request a routes listing
Then I get 200 as response code
And I get "OK" as response phrase
And I get a list with the following elements:
| method | url_pattern | entrypoint | command | index | id |
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body | 0 | * |
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | 1 | * |
And I get "OK" as response phrase
And I get a list with the following elements:
| method | url_pattern | entrypoint | command | index | id |
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body | 0 | * |
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | 1 | * |