SSM: now returns DeliveryTimedOutCount-attr (#5502)
This commit is contained in:
parent
76b127bba6
commit
b176feb540
@ -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,
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user