Rewritten the step to start a preconfigured server
This commit is contained in:
@@ -12,11 +12,11 @@ Feature: Listing routes in a Kapow! server
|
|||||||
When I request a routes listing
|
When I request a routes listing
|
||||||
Then I get an empty list
|
Then I get an empty list
|
||||||
|
|
||||||
Scenario: Listing routes on a server with routes loaded
|
Scenario: Listing routes on a server with routes loaded.
|
||||||
After some route creation/insertion operations the server
|
After some route creation/insertion operations the server
|
||||||
must return an ordered list of routes stored.
|
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 the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
|
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ def step_impl(context):
|
|||||||
assert context.response.json() == []
|
assert context.response.json() == []
|
||||||
|
|
||||||
|
|
||||||
@given('I have a Kapow! server whith this routes appended')
|
@given('I have a Kapow! server whith the following routes')
|
||||||
def step_impl(context):
|
def step_impl(context):
|
||||||
context.server = subprocess.Popen(
|
context.server = subprocess.Popen(
|
||||||
Env.KAPOW_SERVER_CMD,
|
Env.KAPOW_SERVER_CMD,
|
||||||
|
|||||||
Reference in New Issue
Block a user