From b176feb540dcc0dbd4c1fe67880bac49b9c81a97 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Wed, 28 Sep 2022 21:03:14 +0000 Subject: [PATCH] SSM: now returns DeliveryTimedOutCount-attr (#5502) --- moto/ssm/models.py | 1 + tests/test_ssm/test_ssm_boto3.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/moto/ssm/models.py b/moto/ssm/models.py index 6f8f43601..9e004b451 100644 --- a/moto/ssm/models.py +++ b/moto/ssm/models.py @@ -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, diff --git a/tests/test_ssm/test_ssm_boto3.py b/tests/test_ssm/test_ssm_boto3.py index d5fa3c57c..a795be0c7 100644 --- a/tests/test_ssm/test_ssm_boto3.py +++ b/tests/test_ssm/test_ssm_boto3.py @@ -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):