Update PoC and features with the 204 -> 404 update

Closes #33
This commit is contained in:
pancho horrillo
2019-10-04 17:20:47 +02:00
parent 97b8c3fce4
commit 6154210b3f
3 changed files with 10 additions and 10 deletions
@@ -0,0 +1,24 @@
Feature: Fail to retrieve resources from nonexistent handler in Kapow! server.
If trying to access a nonexistent handler then the
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
nonexistent handler will trigger
a handler ID not found error.
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
Scenario: Try to get an invalid resource from a nonexistent handler.
A request to retrieve an invalid resource
from a nonexistent 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 404 as response code
And I get "Handler ID Not Found" as response reason phrase