From c3be29255ab965bd224c48740300750ffc3da84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Hurtado?= Date: Fri, 25 Oct 2019 09:52:12 +0200 Subject: [PATCH] Closes: #66 --- spec/test/features/control/append/error_malformed.feature | 2 +- .../features/control/append/error_unprocessable.feature | 4 ++-- spec/test/features/control/append/success.feature | 4 ++-- spec/test/features/control/delete/error_notfound.feature | 2 +- spec/test/features/control/delete/success.feature | 2 +- spec/test/features/control/get/error_notfound.feature | 2 +- spec/test/features/control/get/success.feature | 2 +- spec/test/features/control/insert/error_malformed.feature | 2 +- .../features/control/insert/error_unprocessable.feature | 6 +++--- spec/test/features/control/insert/success.feature | 4 ++-- spec/test/features/control/list/success.feature | 4 ++-- .../features/data/handler/error_handleridnotfound.feature | 4 ++-- .../features/data/handler/error_invalidresource.feature | 2 +- spec/test/features/data/handler/error_itemnotfound.feature | 2 +- spec/test/features/data/handler/success.feature | 4 ++-- spec/test/features/data/request/success.feature | 2 +- spec/test/features/data/response/success.feature | 2 +- 17 files changed, 25 insertions(+), 25 deletions(-) diff --git a/spec/test/features/control/append/error_malformed.feature b/spec/test/features/control/append/error_malformed.feature index e64414d..567a4e3 100644 --- a/spec/test/features/control/append/error_malformed.feature +++ b/spec/test/features/control/append/error_malformed.feature @@ -28,4 +28,4 @@ Feature: Kapow! server reject append requests with malformed JSON bodies. Hi! I am an invalid JSON document. """ Then I get 400 as response code - And I get "Malformed JSON" as response reason phrase +# And I get "Malformed JSON" as response reason phrase diff --git a/spec/test/features/control/append/error_unprocessable.feature b/spec/test/features/control/append/error_unprocessable.feature index 1a21b46..92121d9 100644 --- a/spec/test/features/control/append/error_unprocessable.feature +++ b/spec/test/features/control/append/error_unprocessable.feature @@ -31,7 +31,7 @@ Feature: Kapow! server rejects requests with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route" as response reason phrase +# And I get "Invalid Route" as response reason phrase Scenario: Error because bad route format. If a request contains an invalid expression in the @@ -48,4 +48,4 @@ Feature: Kapow! server rejects requests with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route" as response reason phrase +# And I get "Invalid Route" as response reason phrase diff --git a/spec/test/features/control/append/success.feature b/spec/test/features/control/append/success.feature index bf67e0c..f66ef29 100644 --- a/spec/test/features/control/append/success.feature +++ b/spec/test/features/control/append/success.feature @@ -33,7 +33,7 @@ Feature: Append new routes in Kapow! server. } """ Then I get 201 as response code - And I get "Created" as response reason phrase +# And I get "Created" as response reason phrase And I get the following response body: """ { @@ -64,7 +64,7 @@ Feature: Append new routes in Kapow! server. } """ Then I get 201 as response code - And I get "Created" as response reason phrase +# And I get "Created" as response reason phrase And I get the following response body: """ { diff --git a/spec/test/features/control/delete/error_notfound.feature b/spec/test/features/control/delete/error_notfound.feature index d70292a..587363f 100644 --- a/spec/test/features/control/delete/error_notfound.feature +++ b/spec/test/features/control/delete/error_notfound.feature @@ -24,4 +24,4 @@ Feature: Fail to delete a route in Kapow! server. Given I have a just started Kapow! server When I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" Then I get 404 as response code - And I get "Not Found" as response reason phrase +# And I get "Not Found" as response reason phrase diff --git a/spec/test/features/control/delete/success.feature b/spec/test/features/control/delete/success.feature index 614f186..0b7a12a 100644 --- a/spec/test/features/control/delete/success.feature +++ b/spec/test/features/control/delete/success.feature @@ -26,4 +26,4 @@ Feature: Delete routes in Kapow! server. | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| kapow set /response/body | When I delete the first route Then I get 204 as response code - And I get "No Content" as response reason phrase +# And I get "No Content" as response reason phrase diff --git a/spec/test/features/control/get/error_notfound.feature b/spec/test/features/control/get/error_notfound.feature index 69e1e31..903711c 100644 --- a/spec/test/features/control/get/error_notfound.feature +++ b/spec/test/features/control/get/error_notfound.feature @@ -24,4 +24,4 @@ Feature: Fail to retrieve route details in Kapow! server. Given I have a just started Kapow! server When I get the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" Then I get 404 as response code - And I get "Not Found" as response reason phrase +# And I get "Not Found" as response reason phrase diff --git a/spec/test/features/control/get/success.feature b/spec/test/features/control/get/success.feature index 04d1287..d8a73cf 100644 --- a/spec/test/features/control/get/success.feature +++ b/spec/test/features/control/get/success.feature @@ -26,7 +26,7 @@ Feature: Retrieve route details in Kapow! server. | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| kapow set /response/body | When I get the first route Then I get 200 as response code - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the following response body: """ { diff --git a/spec/test/features/control/insert/error_malformed.feature b/spec/test/features/control/insert/error_malformed.feature index cef66a8..d94ea10 100644 --- a/spec/test/features/control/insert/error_malformed.feature +++ b/spec/test/features/control/insert/error_malformed.feature @@ -36,4 +36,4 @@ Feature: Kapow! server rejects insertion requests with malformed JSON bodies. } """ Then I get 400 as response code - And I get "Malformed JSON" as response reason phrase +# And I get "Malformed JSON" as response reason phrase diff --git a/spec/test/features/control/insert/error_unprocessable.feature b/spec/test/features/control/insert/error_unprocessable.feature index ab33b3e..c986acc 100644 --- a/spec/test/features/control/insert/error_unprocessable.feature +++ b/spec/test/features/control/insert/error_unprocessable.feature @@ -30,7 +30,7 @@ Feature: Kapow! server rejects insertion requests with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route" as response reason phrase +# And I get "Invalid Route" as response reason phrase Scenario: Error because wrong route specification. If a request contains an invalid expression in the @@ -48,7 +48,7 @@ Feature: Kapow! server rejects insertion requests with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route" as response reason phrase +# And I get "Invalid Route" as response reason phrase Scenario: Error because negative index specified. If a request contains a negative number in the @@ -66,4 +66,4 @@ Feature: Kapow! server rejects insertion requests with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route" as response reason phrase +# And I get "Invalid Route" as response reason phrase diff --git a/spec/test/features/control/insert/success.feature b/spec/test/features/control/insert/success.feature index 59a26be..23a8ad9 100644 --- a/spec/test/features/control/insert/success.feature +++ b/spec/test/features/control/insert/success.feature @@ -39,7 +39,7 @@ Feature: Insert new routes in Kapow! server. } """ Then I get 201 as response code - And I get "Created" as response reason phrase +# And I get "Created" as response reason phrase And I get the following response body: """ { @@ -68,7 +68,7 @@ Feature: Insert new routes in Kapow! server. } """ Then I get 201 as response code - And I get "Created" as response reason phrase +# And I get "Created" as response reason phrase And I get the following response body: """ { diff --git a/spec/test/features/control/list/success.feature b/spec/test/features/control/list/success.feature index 0361043..4817467 100644 --- a/spec/test/features/control/list/success.feature +++ b/spec/test/features/control/list/success.feature @@ -25,7 +25,7 @@ Feature: Listing routes in a Kapow! server. Given I have a just started Kapow! server When I request a routes listing Then I get 200 as response code - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the following response body: """ [] @@ -41,7 +41,7 @@ Feature: Listing routes in a Kapow! server. | GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| kapow set /response/body | When I request a routes listing Then I get 200 as response code - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the following response body: """ [ diff --git a/spec/test/features/data/handler/error_handleridnotfound.feature b/spec/test/features/data/handler/error_handleridnotfound.feature index cd50195..c729803 100644 --- a/spec/test/features/data/handler/error_handleridnotfound.feature +++ b/spec/test/features/data/handler/error_handleridnotfound.feature @@ -25,7 +25,7 @@ Feature: Fail to retrieve resources from nonexistent handler in Kapow! server. Given I have a running Kapow! server When I get the resource "/request/path" for the handler with id "XXXXXXXXXX" Then I get 404 as response code - And I get "Handler ID Not Found" as response reason phrase +# And I get "Handler ID Not Found" as response reason phrase Scenario: Try to get an invalid resource from a nonexistent handler. A request to retrieve an invalid resource @@ -36,4 +36,4 @@ Feature: Fail to retrieve resources from nonexistent handler in Kapow! server. Given I have a running Kapow! server When I get the resource "/invalid/path" for the handler with id "XXXXXXXXXX" Then I get 404 as response code - And I get "Handler ID Not Found" as response reason phrase +# And I get "Handler ID Not Found" as response reason phrase diff --git a/spec/test/features/data/handler/error_invalidresource.feature b/spec/test/features/data/handler/error_invalidresource.feature index 73dcc94..7afa680 100644 --- a/spec/test/features/data/handler/error_invalidresource.feature +++ b/spec/test/features/data/handler/error_invalidresource.feature @@ -27,4 +27,4 @@ Feature: Fail to retrieve an invalid resource for a handler in Kapow! server. When I send a request to the testing route "/foo" And I get the resource "/invented/path" Then I get 400 as response code - And I get "Invalid Resource Path" as response reason phrase +# And I get "Invalid Resource Path" as response reason phrase diff --git a/spec/test/features/data/handler/error_itemnotfound.feature b/spec/test/features/data/handler/error_itemnotfound.feature index 887446a..9b505ab 100644 --- a/spec/test/features/data/handler/error_itemnotfound.feature +++ b/spec/test/features/data/handler/error_itemnotfound.feature @@ -28,4 +28,4 @@ Feature: Fail to retrieve nonexistent resource items in Kapow! server. When I send a request to the testing route "/foo" And I get the resource "/request/params/meloinvento" Then I get 404 as response code - And I get "Resource Item Not Found" as response reason phrase +# And I get "Resource Item Not Found" as response reason phrase diff --git a/spec/test/features/data/handler/success.feature b/spec/test/features/data/handler/success.feature index dc18c63..72b3756 100644 --- a/spec/test/features/data/handler/success.feature +++ b/spec/test/features/data/handler/success.feature @@ -28,7 +28,7 @@ Feature: Retrieve a resource from a handler in Kapow! server. When I send a request to the testing route "/foo" And I get the resource "/request/path" Then I get 200 as response code - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the following response raw body: """ /foo @@ -44,7 +44,7 @@ Feature: Retrieve a resource from a handler in Kapow! server. 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 - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the following response raw body: """ localhost:8080 diff --git a/spec/test/features/data/request/success.feature b/spec/test/features/data/request/success.feature index 03ca2a9..3c2fa2a 100644 --- a/spec/test/features/data/request/success.feature +++ b/spec/test/features/data/request/success.feature @@ -34,7 +34,7 @@ Feature: Retrieve request resources from a handler in Kapow! server. | body | | bodyVal1 | And I get the resource "" Then I get 200 as response code - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the following response raw body: """ diff --git a/spec/test/features/data/response/success.feature b/spec/test/features/data/response/success.feature index bc51836..61a2422 100644 --- a/spec/test/features/data/response/success.feature +++ b/spec/test/features/data/response/success.feature @@ -41,7 +41,7 @@ Feature: Setting values for handler response resources in Kapow! server. And I set the resource "" with value "" And I release the testing request Then I get 200 as response code - And I get "OK" as response reason phrase +# And I get "OK" as response reason phrase And I get the value "" for the response "" named "" in the testing request Examples: