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 Risposta
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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande