This commit is contained in:
Héctor Hurtado committed 2019-08-21 11:07:23 +02:00
commit aa4cd84e79
7 files changed
+127 -34

No files matched your search

@@ -8,7 +8,7 @@ Feature: Kapow! server reject append requests with malformed JSON bodies.
the server will respond with a bad request error.
Given I have a running Kapow! server
When I try to append with this JSON document:
When I try to append with this malformed JSON document:
"""
{
"method" "GET",
@@ -20,5 +20,5 @@ Feature: Kapow! server reject append requests with malformed JSON bodies.
}
"""
Then I get 400 as response code
And I get "Malformed JSON" as response phrase
And I get "Malformed JSON" as response reason phrase
And I get an empty response body
@@ -21,5 +21,5 @@ Feature: Kapow! server reject insert requests with malformed JSON bodies.
}
"""
Then I get bad request as response code
And I get "Malformed JSON" as response phrase
And I get "Malformed JSON" as response reason phrase
And I get an empty response body