Skip to content
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

Better Simulation of Lambda Input and Output #79

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dkong-d2l
Copy link

The actual parameter used to send input to the lambda and get output from said lambda is simply a string value called the Payload. Therefore, the only way for the AWS SDK to send objects to the lambda and get object from said lambda is through JSON. However, before this PR, lambda-tester was passing these objects nakedly (since all parties are just JavaScript), which caused subtle deviations of behaviour from actually invoking an AWS lambda.

This PR fixes this by simulating this serialization process in both input and output. Tests have been modified and added to enforce this behaviour. The existing code style should be preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant