From e7ad81eca6f4c91896519ba6ea57f052fabc64ee Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Wed, 13 Oct 2021 15:49:11 -0400 Subject: [PATCH] Add test for inline policy --- test/certbot.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/certbot.test.ts b/test/certbot.test.ts index 1f026d0c..46d2b749 100644 --- a/test/certbot.test.ts +++ b/test/certbot.test.ts @@ -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));