Revert "Closes: #66"
This reverts commit c3be29255a.
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -34,7 +34,7 @@ Feature: Retrieve request resources from a handler in Kapow! server.
|
||||
| body | | bodyVal1 |
|
||||
And I get the resource "<resourcePath>"
|
||||
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:
|
||||
"""
|
||||
<value>
|
||||
|
||||
@@ -41,7 +41,7 @@ Feature: Setting values for handler response resources in Kapow! server.
|
||||
And I set the resource "<resourcePath>" with value "<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 "<value>" for the response "<fieldType>" named "<elementName>" in the testing request
|
||||
|
||||
Examples:
|
||||
|
||||
Reference in New Issue
Block a user