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:
parent
09b764148c
commit
6fb7867767
3 changed files with 13 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue