New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(AWS API Gateway): Fix schema for apiKeys
and permissionsBoundary
#9489
fix(AWS API Gateway): Fix schema for apiKeys
and permissionsBoundary
#9489
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9489 +/- ##
=======================================
Coverage 86.81% 86.81%
=======================================
Files 328 328
Lines 12029 12029
=======================================
Hits 10443 10443
Misses 1586 1586
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @lyndoh 👏 I only have one minor suggestion and we should be good to go 👍
@@ -135,101 +136,79 @@ describe('#compileApiKeys()', () => { | |||
).to.equal('ApiGatewayDeploymentTest'); | |||
}); | |||
}); | |||
}); | |||
|
|||
describe('lib/plugins/aws/package/compile/events/apiGateway/lib/apiKeys.test.js', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this out to a separate top-level describe
block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pgrzesik
I'm a bit confused, I think the describe('lib/plugins/aws/package/compile/events/apiGateway/lib/apiKeys.test.js' ...
is already at the top-level. Am I misunderstanding what you mean?
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - when reviewing I somehow saw it as nested in the #compileApiKeys
describe
, it's all good 👍
Closes #9440 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done 👍
apiKeys
and permissionsBoundary
Updates schema to match existing implementation.
There was an existing test that already covered the apiKeys implementation which I refactored to use runServerless so that the schema is checked as well. I also added an extra test case to this for the case where neither name or value is provided, which were previously required fields in the schema (but not in the implementation).
Closes: #9080