aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

api gateway lambda integration incorrectly handles allowTestInvoke

Open rigsbyt opened this issue 6 years ago • 1 comments

https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-apigateway/lib/integrations/lambda.ts#L52 this.enableTest = options.allowTestInvoke === undefined ? true : false;

Incorrectly evaluates to false if options.allowTestInvoke is true

Reproduction Steps

new LambdaIntegration(fn, { allowTestInvoke: true})

Other

https://github.com/aws/aws-cdk/pull/7604


This is :bug: Bug Report

rigsbyt avatar Apr 24 '20 20:04 rigsbyt

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Oct 16 '20 15:10 github-actions[bot]