From 20191bb46323028efcc1f0649123797f6889bde8 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Thu, 29 Aug 2024 08:50:00 -0700 Subject: [PATCH] Update format testing --- test/unit/rules/functions/test_getatt_format.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/rules/functions/test_getatt_format.py b/test/unit/rules/functions/test_getatt_format.py index 24cc0cf540..81e589b159 100644 --- a/test/unit/rules/functions/test_getatt_format.py +++ b/test/unit/rules/functions/test_getatt_format.py @@ -27,6 +27,7 @@ def template(): "MyProvisionedProduct": { "Type": "AWS::ServiceCatalog::CloudFormationProvisionedProduct" }, + "MySSMParameter": {"Type": "AWS::SSM::Parameter"}, }, } @@ -64,6 +65,12 @@ def template(): {"format": "AWS::EC2::SecurityGroup.GroupId"}, [], ), + ( + "Valid GetAtt because of exception with attribute", + ["MySSMParameter", "Arn"], + {"format": "AWS::EC2::Image.Id"}, + [], + ), ( "Invalid GetAtt with a bad format", ["MyBucket", "Arn"],