Remove old spec behavior
This commit is contained in:
@@ -17,16 +17,7 @@ Feature: Kapow! server reject responses with semantic errors.
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
Then I get 422 as response code
|
Then I get 422 as response code
|
||||||
And I get "Missing Mandatory Field" as response reason phrase
|
And I get "Invalid Route" as response reason phrase
|
||||||
And I get the following entity as response body:
|
|
||||||
"""
|
|
||||||
{
|
|
||||||
"missing_mandatory_fields": [
|
|
||||||
"url_pattern",
|
|
||||||
"method"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
"""
|
|
||||||
|
|
||||||
Scenario: Error because of wrong route specification.
|
Scenario: Error because of wrong route specification.
|
||||||
If a request contains an invalid expression in the
|
If a request contains an invalid expression in the
|
||||||
@@ -43,23 +34,4 @@ Feature: Kapow! server reject responses with semantic errors.
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
Then I get 422 as response code
|
Then I get 422 as response code
|
||||||
And I get "Invalid Route Spec" as response reason phrase
|
And I get "Invalid Route" as response reason phrase
|
||||||
And I get an empty response body
|
|
||||||
|
|
||||||
Scenario: Error because of wrong method value.
|
|
||||||
If a request contains an invalid value in the
|
|
||||||
field method the server responds with an error.
|
|
||||||
|
|
||||||
Given I have a running Kapow! server
|
|
||||||
When I append the route:
|
|
||||||
"""
|
|
||||||
{
|
|
||||||
"method": "SOMETIMES",
|
|
||||||
"url_pattern": "/",
|
|
||||||
"entrypoint": "/bin/sh -c",
|
|
||||||
"command": "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