Changed get resource item and handler ID not found scenarios.
This change is to comply with Go's implementation. Co-authored-by: pancho horrillo <pedrofelipe.horrillo.@bbva.com>
This commit is contained in:
@@ -35,17 +35,17 @@ Feature: Retrieve a resource from a handler in Kapow! server.
|
||||
"""
|
||||
|
||||
Scenario: Retrieve a resource item.
|
||||
Get the "request/headers/Host" item resource for
|
||||
Get the "request/params/name" item resource for
|
||||
the current request through the handler id.
|
||||
|
||||
Given I have a Kapow! server with the following testing routes:
|
||||
| method | url_pattern |
|
||||
| GET | /foo |
|
||||
When I send a request to the testing route "/foo"
|
||||
And I get the resource "/request/headers/Host"
|
||||
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 the following response raw body:
|
||||
"""
|
||||
localhost:8080
|
||||
bar
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user