Change response code from phrase to code and 'phrase' by 'reason phrase'
This commit is contained in:
@@ -12,8 +12,8 @@ Feature: Kapow! server reject responses with semantic errors.
|
||||
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
|
||||
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" |
|
||||
@@ -26,8 +26,8 @@ Feature: Kapow! server reject responses with semantic errors.
|
||||
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
|
||||
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.
|
||||
@@ -38,6 +38,6 @@ Feature: Kapow! server reject responses with semantic errors.
|
||||
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
|
||||
Then I get 422 as response code
|
||||
And I get "Invalid Data Type" as response reason phrase
|
||||
And I get an empty response body
|
||||
|
||||
@@ -11,8 +11,8 @@ Feature: Append new routes in 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
|
||||
And I get "Created" as response phrase
|
||||
Then I get 201 as response code
|
||||
And I get "Created" as response reason phrase
|
||||
And I get the following entity as response body:
|
||||
| method | url_pattern | entrypoint | command | index | id |
|
||||
| GET | /listRootDir | /bin/sh -c | ls -la / \| response /body | 0 | * |
|
||||
@@ -28,8 +28,8 @@ Feature: Append new routes in Kapow! server.
|
||||
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
|
||||
Then I get 201 as response code
|
||||
And I get "Created" as response reason phrase
|
||||
And I get the following entity as response body:
|
||||
| method | url_pattern | entrypoint | command | index | id |
|
||||
| GET | /listEtcDir | /bin/sh -c | ls -la /etc \| response /body | 2 | * |
|
||||
|
||||
Reference in New Issue
Block a user