SSM: now returns DeliveryTimedOutCount-attr (#5502)

This commit is contained in:
Bert Blommers 2022-09-28 21:03:14 +00:00 committed by GitHub
parent 76b127bba6
commit b176feb540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -635,6 +635,7 @@ class Command(BaseModel):
"CommandId": self.command_id,
"Comment": self.comment,
"CompletedCount": self.completed_count,
"DeliveryTimedOutCount": 0,
"DocumentName": self.document_name,
"ErrorCount": self.error_count,
"ExpiresAfter": self.expires_after,

View File

@ -1713,6 +1713,7 @@ def test_send_command():
cmd["OutputS3KeyPrefix"].should.equal("pref")
cmd["ExpiresAfter"].should.be.greater_than(before)
cmd["DeliveryTimedOutCount"].should.equal(0)
# test sending a command without any optional parameters
response = client.send_command(DocumentName=ssm_document)
@ -1760,6 +1761,7 @@ def test_list_commands():
for cmd in cmds:
cmd["InstanceIds"].should.contain("i-123456")
cmd.should.have.key("DeliveryTimedOutCount").equals(0)
# test the error case for an invalid command id
with pytest.raises(ClientError):