Skip to content

Commit 966a26c

Browse files
committed
Add unit tests
1 parent 91f8678 commit 966a26c

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

tests/translator/input/all_policy_templates.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,6 @@ Resources:
168168

169169
- EventBridgePutEventsPolicy:
170170
EventBusName: name
171+
172+
- AcmGetCertificatePolicy:
173+
CertificateArn: arn

tests/translator/output/all_policy_templates.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,27 @@
15701570
}
15711571
]
15721572
}
1573+
},
1574+
{
1575+
"PolicyName": "KitchenSinkFunctionRolePolicy58",
1576+
"PolicyDocument": {
1577+
"Statement": [
1578+
{
1579+
"Action": [
1580+
"acm:GetCertificate"
1581+
],
1582+
"Resource": {
1583+
"Fn::Sub": [
1584+
"${certificateArn}",
1585+
{
1586+
"certificateArn": "arn"
1587+
}
1588+
]
1589+
},
1590+
"Effect": "Allow"
1591+
}
1592+
]
1593+
}
15731594
}
15741595
],
15751596
"Tags": [

tests/translator/output/aws-cn/all_policy_templates.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,27 @@
15701570
}
15711571
]
15721572
}
1573+
},
1574+
{
1575+
"PolicyName": "KitchenSinkFunctionRolePolicy58",
1576+
"PolicyDocument": {
1577+
"Statement": [
1578+
{
1579+
"Action": [
1580+
"acm:GetCertificate"
1581+
],
1582+
"Resource": {
1583+
"Fn::Sub": [
1584+
"${certificateArn}",
1585+
{
1586+
"certificateArn": "arn"
1587+
}
1588+
]
1589+
},
1590+
"Effect": "Allow"
1591+
}
1592+
]
1593+
}
15731594
}
15741595
],
15751596
"Tags": [

tests/translator/output/aws-us-gov/all_policy_templates.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,27 @@
15701570
}
15711571
]
15721572
}
1573+
},
1574+
{
1575+
"PolicyName": "KitchenSinkFunctionRolePolicy58",
1576+
"PolicyDocument": {
1577+
"Statement": [
1578+
{
1579+
"Action": [
1580+
"acm:GetCertificate"
1581+
],
1582+
"Resource": {
1583+
"Fn::Sub": [
1584+
"${certificateArn}",
1585+
{
1586+
"certificateArn": "arn"
1587+
}
1588+
]
1589+
},
1590+
"Effect": "Allow"
1591+
}
1592+
]
1593+
}
15731594
}
15741595
],
15751596
"Tags": [

0 commit comments

Comments
 (0)