Rewritten data/request and data/response features. Bigger size for scenarios and steps in gherkin-lint
This commit is contained in:
@@ -1,26 +1,28 @@
|
||||
Feature: Retrieve request resources from a handler in Kapow! server.
|
||||
Users can retrieve request handler resources
|
||||
from the server by specifying the handler id
|
||||
and the resource path.
|
||||
Users can retrieve request resources by
|
||||
specifying the handler id and the
|
||||
resource path.
|
||||
|
||||
Scenario Outline: Retrieve all defined resources for the current request.
|
||||
Get the following resources for the current
|
||||
request through the current handler.
|
||||
Scenario Outline: Retrieve different resources for the current request.
|
||||
Get the following resources for the
|
||||
current request through the current
|
||||
handler.
|
||||
|
||||
Given I have a Kapow! server with the following routes:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listRootDir/{path} | /bin/sh -c | ls -la / \| response /body |
|
||||
|
||||
When I send a request to the route "/listRootDir/otro" setting this values:
|
||||
| type | name | value |
|
||||
Given I have a Kapow! server with the following testing routes:
|
||||
| method | url_pattern |
|
||||
| GET | /listRootDir/{path} |
|
||||
When I send a request to the testing route "/listRootDir/otro" adding:
|
||||
| fieldType | name | value |
|
||||
| parameter | "par1" | "paramVal1" |
|
||||
| header | "head1" | "headVal1" |
|
||||
| cookie | "cook1" | "cookieVal1" |
|
||||
|
||||
And I get the resource <resourcePath> for the current request handler
|
||||
And I get the resource <resourcePath>
|
||||
Then I get 200 as response code
|
||||
And I get "OK" as response reason phrase
|
||||
And I get the following response body <value>
|
||||
And I get the following response raw body:
|
||||
"""
|
||||
<value>
|
||||
"""
|
||||
|
||||
Examples:
|
||||
| resourcePath | value |
|
||||
|
||||
Reference in New Issue
Block a user