-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix APIGW AWS_PROXY lambda response validation #11856
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 25m 40s ⏱️ - 1h 17m 54s Results for commit f346239. ± Comparison against base commit 385a141. This pull request removes 2718 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
f8a00e4
to
f346239
Compare
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.
Solid fix! awesome that we can catch some of these already before the v4 realease! 🚀
response = _invoke( | ||
body={ | ||
"statusCode": 200, | ||
"multiValueHeaders": {"tesT-Multi": ["value-multi"]}, | ||
"headers": {"test-multi": "value-solo"}, | ||
}, | ||
return_headers=True, | ||
) | ||
snapshot.match("invoke-api-multi-headers-overwrite-casing", response) |
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.
That is an interesting case!
Motivation
We got a report in our Community Slack regarding too strict lambda payload response validation for the
AWS_PROXY
integration:It seems we were too strict, and didn't have this validated by tests. I've added a quite complete tests inspired by some of our other work.
I've also spotted an issue in our multi value headers handling which I've sneaked a fix for.
Changes
headers
was set tonull