Adapting style to the capabilities of gherkin-lint.
This commit is contained in:
@@ -9,10 +9,10 @@ Feature: Kapow! server reject responses with semantic errors.
|
||||
missing fields.
|
||||
|
||||
Given I have a running Kapow! server
|
||||
When I append the route:
|
||||
| entrypoint | command |
|
||||
| /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get unprocessable entity as response code
|
||||
When I append the route:
|
||||
| entrypoint | command |
|
||||
| /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get unprocessable entity as response code
|
||||
And I get "Missing Mandatory Field" as response phrase
|
||||
And I get the following entity as response body:
|
||||
| missing_mandatory_fields |
|
||||
@@ -23,10 +23,10 @@ Feature: Kapow! server reject responses with semantic errors.
|
||||
field url_pattern the server responds with an error.
|
||||
|
||||
Given I have a running Kapow! server
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | +123-- | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get unprocessable entity as response code
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | +123-- | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get unprocessable entity as response code
|
||||
And I get "Invalid Route Spec" as response phrase
|
||||
And I get an empty response body
|
||||
|
||||
@@ -35,11 +35,9 @@ Feature: Kapow! server reject responses with semantic errors.
|
||||
field method the server responds with an error.
|
||||
|
||||
Given I have a running Kapow! server
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| AVECES | +123-- | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get unprocessable entity as response code
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| AVECES | +123-- | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get unprocessable entity as response code
|
||||
And I get "Invalid Data Type" as response phrase
|
||||
And I get an empty response body
|
||||
|
||||
...
|
||||
|
||||
@@ -8,10 +8,10 @@ Feature: Append new routes in Kapow! server.
|
||||
will be at index 0.
|
||||
|
||||
Given I have a just started Kapow! server
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get created as response code
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get created as response code
|
||||
And I get "Created" as response phrase
|
||||
And I get the following entity as response body:
|
||||
| method | url_pattern | entrypoint | command | index | id |
|
||||
@@ -25,10 +25,10 @@ Feature: Append new routes in Kapow! server.
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body |
|
||||
| GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listEtcDir | /bin/sh -c | ls -la /etc \| response /body |
|
||||
Then I get created as response code
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | /listEtcDir | /bin/sh -c | ls -la /etc \| response /body |
|
||||
Then I get created as response code
|
||||
And I get "Created" as response phrase
|
||||
And I get the following entity as response body:
|
||||
| method | url_pattern | entrypoint | command | index | id |
|
||||
|
||||
Reference in New Issue
Block a user