Fix: Put Events API (#3145)

* Fix: Put Events API

* Update from code review.

Co-authored-by: Logan Asher Jones <logan@codescratch.com>
This commit is contained in:
Logan Jones 2020-07-19 05:00:24 -04:00 committed by GitHub
commit 6fb7867767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 8 deletions

View file

@ -312,8 +312,10 @@ def test_put_events():
"DetailType": "myDetailType",
}
client.put_events(Entries=[event])
response = client.put_events(Entries=[event])
# Boto3 would error if it didn't return 200 OK
response["FailedEntryCount"].should.equal(0)
response["Entries"].should.have.length_of(1)
with assert_raises(ClientError):
client.put_events(Entries=[event] * 20)