Implement feature list success.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-14 13:19:56 +02:00
parent 4e86cf1ba4
commit bc2b323923
8 changed files with 277 additions and 9 deletions
@@ -1,14 +1,14 @@
Feature: Listing routes in a Kapow server
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
available on a Kapow! server. The List endpoint returns
a list of the routes the server has configured.
Scenario: Listing routes on a fresh started server
A fresh server, just started or with all routes removed,
will show an empty list of routes.
Given I have a just started Kapow server
Given I have a just started Kapow! server
When I request a routes listing
Then I get an empty list
@@ -16,11 +16,10 @@ Feature: Listing routes in a Kapow server
After some route creation/insertion operations the server
must return an ordered list of routes stored.
Given I have a Kapow server whith this routes appended:
Given I have a Kapow! server whith this routes appended:
| method | url_pattern | entrypoint | command |
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
When I request a routes listing
Then I get a list with the following elements:
| method | url_pattern | entrypoint | command | index | id |