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
|
||||
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
|
||||
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 |
|
||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| 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() == []
|
||||
|
||||
|
||||
@given('I have a Kapow! server whith this routes appended')
|
||||
@given('I have a Kapow! server whith the following routes')
|
||||
def step_impl(context):
|
||||
context.server = subprocess.Popen(
|
||||
Env.KAPOW_SERVER_CMD,
|
||||
|
||||
Reference in New Issue
Block a user