New error handling in poc and features
This commit is contained in:
1 parent
9ebc989bc7
commit
ee9bb8df9c
11 files changed
+95
-20
No files matched your search
@@ -28,4 +28,10 @@ Feature: Kapow! server reject append requests with malformed JSON bodies.
|
||||
Hi! I am an invalid JSON document.
|
||||
"""
|
||||
Then I get 400 as response code
|
||||
And I get "Malformed JSON" as response reason phrase
|
||||
And the response header "Content-Type" contains "application/json"
|
||||
And I get the following response body:
|
||||
"""
|
||||
{
|
||||
"reason": "Malformed JSON"
|
||||
}
|
||||
"""
|
||||
Reference in new issue
Block a user