diff --git a/spec/test/features/control/append/success.feature b/spec/test/features/control/append/success.feature index 46e11b4..2f419b7 100644 --- a/spec/test/features/control/append/success.feature +++ b/spec/test/features/control/append/success.feature @@ -36,8 +36,8 @@ Feature: Append new routes in Kapow! server. at the end of the list. Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | When I append the route: """ diff --git a/spec/test/features/control/delete/list_order.feature b/spec/test/features/control/delete/list_order.feature index 8a4a69f..f6296c4 100644 --- a/spec/test/features/control/delete/list_order.feature +++ b/spec/test/features/control/delete/list_order.feature @@ -4,10 +4,10 @@ Feature: Consistent route order after a route deletion in Kapow! server. Background: Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | - | GET | /bar | /bin/sh -c | ls -la /var \| response /body | - | GET | /baz | /bin/sh -c | ls -la /etc \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | GET | /bar | /bin/sh -c | ls -la /var \| 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 | Scenario: Removing the first route. diff --git a/spec/test/features/control/delete/success.feature b/spec/test/features/control/delete/success.feature index 8c9621b..3aafacd 100644 --- a/spec/test/features/control/delete/success.feature +++ b/spec/test/features/control/delete/success.feature @@ -6,8 +6,8 @@ Feature: Delete routes in Kapow! server. Routes are removed from the sever by specifying their id. Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | When I delete the first route Then I get 204 as response code diff --git a/spec/test/features/control/get/success.feature b/spec/test/features/control/get/success.feature index 94d1d01..c01f09f 100644 --- a/spec/test/features/control/get/success.feature +++ b/spec/test/features/control/get/success.feature @@ -6,8 +6,8 @@ Feature: Retrieve route details in Kapow! server. Get route details by id. Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | When I get the first route Then I get 200 as response code diff --git a/spec/test/features/control/insert/list_order.feature b/spec/test/features/control/insert/list_order.feature index 466b28e..5e11303 100644 --- a/spec/test/features/control/insert/list_order.feature +++ b/spec/test/features/control/insert/list_order.feature @@ -4,8 +4,8 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server. Background: Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | Scenario: Inserting before the first route. diff --git a/spec/test/features/control/insert/success.feature b/spec/test/features/control/insert/success.feature index 79daba8..185308a 100644 --- a/spec/test/features/control/insert/success.feature +++ b/spec/test/features/control/insert/success.feature @@ -5,8 +5,8 @@ Feature: Insert new routes in Kapow! server. Background: Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | Scenario: Insert a route at the beginning. diff --git a/spec/test/features/control/list/success.feature b/spec/test/features/control/list/success.feature index 6c4a85b..d3c3fd4 100644 --- a/spec/test/features/control/list/success.feature +++ b/spec/test/features/control/list/success.feature @@ -21,8 +21,8 @@ Feature: Listing routes in a Kapow! server. must return an ordered list of routes stored. Given I have a Kapow! server with the following routes: - | method | url_pattern | entrypoint | command | - | GET | /foo | /bin/sh -c | ls -la / \| response /body | + | method | url_pattern | entrypoint | command | + | GET | /foo | /bin/sh -c | ls -la / \| response /body | | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | When I request a routes listing Then I get 200 as response code diff --git a/spec/test/features/data/handler/error_invalidresource.feature b/spec/test/features/data/handler/error_invalidresource.feature index 0891dc6..7f289f0 100644 --- a/spec/test/features/data/handler/error_invalidresource.feature +++ b/spec/test/features/data/handler/error_invalidresource.feature @@ -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. Given I have a Kapow! server with the following testing routes: - | method | url_pattern | - | GET | /foo | + | method | url_pattern | + | GET | /foo | When I send a request to the testing route "/foo" And I get the resource "/invented/path" Then I get 400 as response code diff --git a/spec/test/features/data/handler/error_itemnotfound.feature b/spec/test/features/data/handler/error_itemnotfound.feature index d1505d6..9cf11fa 100644 --- a/spec/test/features/data/handler/error_itemnotfound.feature +++ b/spec/test/features/data/handler/error_itemnotfound.feature @@ -8,8 +8,8 @@ Feature: Fail to retrieve nonexistent resource items in Kapow! server. error. Given I have a Kapow! server with the following testing routes: - | method | url_pattern | - | GET | /foo | + | method | url_pattern | + | GET | /foo | When I send a request to the testing route "/foo" And I get the resource "/request/params/meloinvento" Then I get 204 as response code diff --git a/spec/test/features/data/handler/error_notfound.feature b/spec/test/features/data/handler/error_notfound.feature index 33a0468..aef71c3 100644 --- a/spec/test/features/data/handler/error_notfound.feature +++ b/spec/test/features/data/handler/error_notfound.feature @@ -1,6 +1,6 @@ Feature: Fail to retrieve resources from nonexistent handler in Kapow! server. 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. A request to retrieve a resource from a diff --git a/spec/test/features/data/handler/success.feature b/spec/test/features/data/handler/success.feature index a680bbb..9e458ec 100644 --- a/spec/test/features/data/handler/success.feature +++ b/spec/test/features/data/handler/success.feature @@ -8,8 +8,8 @@ Feature: Retrieve a resource from a handler in Kapow! server. request through the handler id. Given I have a Kapow! server with the following testing routes: - | method | url_pattern | - | GET | /foo | + | method | url_pattern | + | GET | /foo | When I send a request to the testing route "/foo" And I get the resource "/request/path" 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. Given I have a Kapow! server with the following testing routes: - | method | url_pattern | - | GET | /foo | + | method | url_pattern | + | GET | /foo | When I send a request to the testing route "/foo" And I get the resource "/request/headers/Host" Then I get 200 as response code diff --git a/spec/test/features/data/request/success.feature b/spec/test/features/data/request/success.feature index 7b14700..3f51053 100644 --- a/spec/test/features/data/request/success.feature +++ b/spec/test/features/data/request/success.feature @@ -28,7 +28,7 @@ Feature: Retrieve request resources from a handler in Kapow! server. Examples: | resourcePath | value | | /request/method | GET | - | /request/path | /foo/matchVal1 | + | /request/path | /foo/matchVal1 | | /request/host | localhost:8080 | | /request/matches/path | matchVal1 | | /request/params/par1 | paramVal1 | diff --git a/spec/test/features/data/response/success.feature b/spec/test/features/data/response/success.feature index afb623d..91eaec0 100644 --- a/spec/test/features/data/response/success.feature +++ b/spec/test/features/data/response/success.feature @@ -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: | method | url_pattern | - | GET | /foo | + | GET | /foo | When I send a request to the testing route "/foo" And I set the resource "/response/status" with value "418" 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: | method | url_pattern | - | GET | /foo | + | GET | /foo | When I send a request to the testing route "/foo" And I set the resource "" with value "" And I release the testing request