Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Run integ tests against deployed test stack #53

Open
jlhood opened this issue Oct 15, 2019 · 4 comments
Open

Run integ tests against deployed test stack #53

jlhood opened this issue Oct 15, 2019 · 4 comments

Comments

@jlhood
Copy link
Contributor

jlhood commented Oct 15, 2019

Currently the backend integ tests are self-contained in that they stand up test stacks, run the integ tests against those stacks and then tear down the test stacks. This captures one type of integ testing we do in SAR, but not the other kind, which is to test against the test environment (beta) stacks deployed by the pipeline. This is causing some confusion so we should also add a pipeline step to run integ tests against the deployed instance of the application after pipeline deployment.

@honglu
Copy link
Contributor

honglu commented Oct 15, 2019

We considered this option but since there is no more stage after the Deploy stage, even if the integ tests fail, it does not really prevent anything or rollback the deployment in Deploy stage.

@salmanap
Copy link

Couldn't we create another stage in the pipeline? run the integ tests in that stage and then promote the changes to the final stage?

@jlhood
Copy link
Contributor Author

jlhood commented Oct 15, 2019

Yeah I think it'd be better if the pipeline had a beta and prod stack with integ tests running against the beta stack prior to deployment to the prod stack.

@honglu
Copy link
Contributor

honglu commented Oct 15, 2019

Since we are using aws-sam-codepipeline-cd to setup CD pipeline, I created an issue there to address this issue

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

No branches or pull requests

3 participants