Skip to content

Commit 32425a7

Browse files
committed
added test for false cloudWatchRole in gateway helper
1 parent bbb9024 commit 32425a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/patterns/@aws-solutions-constructs/core/test/apigateway-helper.test.ts

+9
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ test('Test default RestApi deployment w/ ApiGatewayProps', () => {
201201
});
202202
});
203203

204+
test('Test default RestApi deployment w/ cloudWatchRole set to false', () => {
205+
const stack = new Stack();
206+
setupRestApi(stack, {
207+
cloudWatchRole: false
208+
});
209+
210+
expect(stack).toCountResources("AWS::ApiGateway::Account", 0);
211+
});
212+
204213
test('Test default RestApi deployment for Cloudwatch loggroup', () => {
205214
const stack = new Stack();
206215
deployRegionalApiGateway(stack);

0 commit comments

Comments
 (0)