Skip to content

Commit

Permalink
Update format testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Aug 29, 2024
1 parent a019e71 commit 20191bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/rules/functions/test_getatt_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def template():
"MyProvisionedProduct": {
"Type": "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
},
"MySSMParameter": {"Type": "AWS::SSM::Parameter"},
},
}

Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 20191bb

Please sign in to comment.