Revert "Closes: #66"

This reverts commit c3be29255a.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrillo
2019-11-11 17:17:25 +01:00
parent 19f7cb0171
commit 9eb186bd0f
17 changed files with 27 additions and 27 deletions
@@ -25,14 +25,14 @@ 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 from a nonexistent
handler will trigger an invalid resource path error
handler will trigger a handler ID not found error
even if the resource is invalid.
Given I have a running Kapow! server
When I get the resource "/invalid/path" for the handler with id "XXXXXXXXXX"
Then I get 400 as response code
# And I get "Invalid Resource Path" as response reason phrase
Then I get 404 as response code
And I get "Handler ID Not Found" as response reason phrase
@@ -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
@@ -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
@@ -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?name=bar"
And I get the resource "/request/params/name"
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:
"""
bar