Is there any way to do Contract testing for the AWS lambdas. Pact is being used for normal APIs, But I am trying to implement Contract Testing on AWS SAM. Is there any tool for this or Pact can be used with any modifications?
相关问题
- Register MicroServices in Azure Active Directory (
- Assume/switch role in aws toolkit for eclipse 2.0
- Managing data-store concurrency as microservices s
- Installing Python dependencies in AWS Codestar wit
- AWS SES on Lambda - fails (silently) to send email
相关文章
- Is it safe to show the AWS cognito pool ID in my h
- Using AWS Secrets Manager with Python (Lambda Cons
- AWS Lambda SQS Trigger Throttle/Limit
- Denying a Sign-up request in Cognito User Pools
- Export existing AWS Lambda and API Gateway to Clou
- AWS API Gateway and Lambda to return image
- GPU based algorithm on AWS Lambda
- How to describe AWS Lambda function test events in
You can use the amazon-cli if you want to test it.
amazon-cli will help you to manually trigger your lamda via aws lambda invoke the command.
Please install amazon-cli at your local from this link.
After that you can invoke the amazon 1st lamda from your cli with aws lamda command. It comes with many options like you can pass payload (supposed to be pass from SNS in actual scenario).
Executing AWS Lamda from Amazon-CLI Command details description
Example command:
I hope it helps.
Yes, you can use Pact to do contract testing with Lambda.
For example, Pact JS has support for asynchronous programming and has an example for Lambda using the serverless framework [1].
There is a good intro article [2] on the matter also.