Fix tables alignment
This commit is contained in:
@@ -36,8 +36,8 @@ Feature: Append new routes in Kapow! server.
|
|||||||
at the end of the list.
|
at the end of the list.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
When I append the route:
|
When I append the route:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ Feature: Consistent route order after a route deletion in Kapow! server.
|
|||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /bar | /bin/sh -c | ls -la /var \| response /body |
|
| GET | /bar | /bin/sh -c | ls -la /var \| response /body |
|
||||||
| GET | /baz | /bin/sh -c | ls -la /etc \| response /body |
|
| GET | /baz | /bin/sh -c | ls -la /etc \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
|
|
||||||
Scenario: Removing the first route.
|
Scenario: Removing the first route.
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ Feature: Delete routes in Kapow! server.
|
|||||||
Routes are removed from the sever by specifying their id.
|
Routes are removed from the sever by specifying their id.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
When I delete the first route
|
When I delete the first route
|
||||||
Then I get 204 as response code
|
Then I get 204 as response code
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ Feature: Retrieve route details in Kapow! server.
|
|||||||
Get route details by id.
|
Get route details by id.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
When I get the first route
|
When I get the first route
|
||||||
Then I get 200 as response code
|
Then I get 200 as response code
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
|
|||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
|
|
||||||
Scenario: Inserting before the first route.
|
Scenario: Inserting before the first route.
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ Feature: Insert new routes in Kapow! server.
|
|||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
|
|
||||||
Scenario: Insert a route at the beginning.
|
Scenario: Insert a route at the beginning.
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ Feature: Listing routes in a Kapow! server.
|
|||||||
must return an ordered list of routes stored.
|
must return an ordered list of routes stored.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following routes:
|
Given I have a Kapow! server with the following routes:
|
||||||
| method | url_pattern | entrypoint | command |
|
| method | url_pattern | entrypoint | command |
|
||||||
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
|
||||||
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||||
When I request a routes listing
|
When I request a routes listing
|
||||||
Then I get 200 as response code
|
Then I get 200 as response code
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ Feature: Fail to retrieve an invalid resource for a handler in Kapow! server.
|
|||||||
from a handler will trigger a invalid resource error.
|
from a handler will trigger a invalid resource error.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following testing routes:
|
Given I have a Kapow! server with the following testing routes:
|
||||||
| method | url_pattern |
|
| method | url_pattern |
|
||||||
| GET | /foo |
|
| GET | /foo |
|
||||||
When I send a request to the testing route "/foo"
|
When I send a request to the testing route "/foo"
|
||||||
And I get the resource "/invented/path"
|
And I get the resource "/invented/path"
|
||||||
Then I get 400 as response code
|
Then I get 400 as response code
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ Feature: Fail to retrieve nonexistent resource items in Kapow! server.
|
|||||||
error.
|
error.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following testing routes:
|
Given I have a Kapow! server with the following testing routes:
|
||||||
| method | url_pattern |
|
| method | url_pattern |
|
||||||
| GET | /foo |
|
| GET | /foo |
|
||||||
When I send a request to the testing route "/foo"
|
When I send a request to the testing route "/foo"
|
||||||
And I get the resource "/request/params/meloinvento"
|
And I get the resource "/request/params/meloinvento"
|
||||||
Then I get 204 as response code
|
Then I get 204 as response code
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Feature: Fail to retrieve resources from nonexistent handler in Kapow! server.
|
Feature: Fail to retrieve resources from nonexistent handler in Kapow! server.
|
||||||
If trying to access a nonexistent handler then the
|
If trying to access a nonexistent handler then the
|
||||||
server responds with a noptfound error.
|
server responds with a not found error.
|
||||||
|
|
||||||
Scenario: Try to get a valid resource path from a nonexistent handler.
|
Scenario: Try to get a valid resource path from a nonexistent handler.
|
||||||
A request to retrieve a resource from a
|
A request to retrieve a resource from a
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ Feature: Retrieve a resource from a handler in Kapow! server.
|
|||||||
request through the handler id.
|
request through the handler id.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following testing routes:
|
Given I have a Kapow! server with the following testing routes:
|
||||||
| method | url_pattern |
|
| method | url_pattern |
|
||||||
| GET | /foo |
|
| GET | /foo |
|
||||||
When I send a request to the testing route "/foo"
|
When I send a request to the testing route "/foo"
|
||||||
And I get the resource "/request/path"
|
And I get the resource "/request/path"
|
||||||
Then I get 200 as response code
|
Then I get 200 as response code
|
||||||
@@ -24,8 +24,8 @@ Feature: Retrieve a resource from a handler in Kapow! server.
|
|||||||
the current request through the handler id.
|
the current request through the handler id.
|
||||||
|
|
||||||
Given I have a Kapow! server with the following testing routes:
|
Given I have a Kapow! server with the following testing routes:
|
||||||
| method | url_pattern |
|
| method | url_pattern |
|
||||||
| GET | /foo |
|
| GET | /foo |
|
||||||
When I send a request to the testing route "/foo"
|
When I send a request to the testing route "/foo"
|
||||||
And I get the resource "/request/headers/Host"
|
And I get the resource "/request/headers/Host"
|
||||||
Then I get 200 as response code
|
Then I get 200 as response code
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ Feature: Retrieve request resources from a handler in Kapow! server.
|
|||||||
Examples:
|
Examples:
|
||||||
| resourcePath | value |
|
| resourcePath | value |
|
||||||
| /request/method | GET |
|
| /request/method | GET |
|
||||||
| /request/path | /foo/matchVal1 |
|
| /request/path | /foo/matchVal1 |
|
||||||
| /request/host | localhost:8080 |
|
| /request/host | localhost:8080 |
|
||||||
| /request/matches/path | matchVal1 |
|
| /request/matches/path | matchVal1 |
|
||||||
| /request/params/par1 | paramVal1 |
|
| /request/params/par1 | paramVal1 |
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Feature: Setting values for handler response resources in Kapow! server.
|
|||||||
|
|
||||||
Given I have a Kapow! server with the following testing routes:
|
Given I have a Kapow! server with the following testing routes:
|
||||||
| method | url_pattern |
|
| method | url_pattern |
|
||||||
| GET | /foo |
|
| GET | /foo |
|
||||||
When I send a request to the testing route "/foo"
|
When I send a request to the testing route "/foo"
|
||||||
And I set the resource "/response/status" with value "418"
|
And I set the resource "/response/status" with value "418"
|
||||||
And I release the testing request
|
And I release the testing request
|
||||||
@@ -21,7 +21,7 @@ Feature: Setting values for handler response resources in Kapow! server.
|
|||||||
|
|
||||||
Given I have a Kapow! server with the following testing routes:
|
Given I have a Kapow! server with the following testing routes:
|
||||||
| method | url_pattern |
|
| method | url_pattern |
|
||||||
| GET | /foo |
|
| GET | /foo |
|
||||||
When I send a request to the testing route "/foo"
|
When I send a request to the testing route "/foo"
|
||||||
And I set the resource "<resourcePath>" with value "<value>"
|
And I set the resource "<resourcePath>" with value "<value>"
|
||||||
And I release the testing request
|
And I release the testing request
|
||||||
|
|||||||
Reference in New Issue
Block a user