Added features for append/error_malformed, delete/list_order, insert/error_malformed and insert/list_order. Updated append/error_unprocessable and resolve conflicts in list/success.
This commit is contained in:
@@ -9,11 +9,11 @@ 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
|
||||
And I get "Missing Mandatory Field" as response phrase
|
||||
When I append the route:
|
||||
| entrypoint | command |
|
||||
| /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get 422 as response code
|
||||
And I get "Missing Mandatory Field" as response reason phrase
|
||||
And I get the following entity as response body:
|
||||
| missing_mandatory_fields |
|
||||
| "url_pattern", "method" |
|
||||
@@ -23,11 +23,11 @@ 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
|
||||
And I get "Invalid Route Spec" as response phrase
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| GET | +123-- | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get 422 as response code
|
||||
And I get "Invalid Route Spec" as response reason phrase
|
||||
And I get an empty response body
|
||||
|
||||
Scenario: Error because of wrong method value.
|
||||
@@ -35,9 +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
|
||||
And I get "Invalid Data Type" as response phrase
|
||||
When I append the route:
|
||||
| method | url_pattern | entrypoint | command |
|
||||
| AVECES | +123-- | /bin/sh -c | ls -la / \| response /body |
|
||||
Then I get 422 as response code
|
||||
And I get "Invalid Data Type" as response reason phrase
|
||||
And I get an empty response body
|
||||
|
||||
Reference in New Issue
Block a user