Files
kapow/spec/test/features/data/handler/error_notfound.feature

29 lines
1.3 KiB
Gherkin

Feature: Fail to retrieve resources from nonexistent handler in Kapow! server.
If trying to access a nonexistent handler then the
server responds with a noptfound error.
@wip
Scenario: Try to get a valid resource from a nonexistent handler.
A request for retrieving a resource from a nonexistent
handler will trigger a not found error.
Given I have a Kapow! server with the following routes:
| method | url_pattern | entrypoint | command |
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
When I the get the resource "request/path" for the handler with id HANDLER_ID_XXXXXXXXXX
Then I get 404 as response code
And I get "Not Found" as response reason phrase
@wip
Scenario: Fail to get an invalid resource from a nonexistent handler.
A request for retrieving a resource from a nonexistent
handler will trigger a not found error even if the
resource is invalid.
Given I have a Kapow! server with the following routes:
| method | url_pattern | entrypoint | command |
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
When I the get the resource "invented/path" for the handler with id HANDLER_ID_XXXXXXXXXX
Then I get 404 as response code
And I get "Not Found" as response reason phrase