Skip to content

Commit

Permalink
Add test for inline policy
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiller08 committed Oct 13, 2021
1 parent 5cdd102 commit e7ad81e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/certbot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ test('Default', () => {
expectCDK(stack).to(countResources('AWS::Lambda::Function', 1));
expectCDK(stack).to(countResources('AWS::Events::Rule', 1));
expectCDK(stack).to(countResources('AWS::S3::Bucket', 1));
expectCDK(stack).to(countResources('AWS::IAM::ManagedPolicy', 3));
expectCDK(stack).to(countResources('AWS::IAM::ManagedPolicy', 3)); // acm, sns, and r53
expectCDK(stack).to(countResources('AWS::IAM::Policy', 1)); // 1 inline policy for granting bucket write
expectCDK(stack).to(countResources('AWS::IAM::Role', 1));
expectCDK(stack).to(countResources('AWS::SNS::Topic', 1));
expectCDK(stack).to(countResources('AWS::SNS::Subscription', 1));
Expand Down

0 comments on commit e7ad81e

Please sign in to comment.