Integration Tests in AWS Lambda

0

We have a microservice code repo in AWS code commit, we use code pipeline and code build to build the project and deploy into lambda. We run unit tests as part of build itself. Now, I want to run the integration tests in the pipeline itself after the code deployed to lambda. If anyone setup such integration test suite in the aws code pipeline, kindly provide us some reference for the setup. It would be super helpful.

1 Antwort
0

If you use CodeDeploy to deploy your code, you can use another lambda to run your test. You can configure if to run the test before or after allowing traffic, in the section hooks in your appspec.yml file. You can find more information on the documentation here: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-lambda

profile picture
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen