Create an integration test
The problem
We've had a regression today because I ended up trusting our unit tests: #69 (closed). We could also have a unit test that does the exact same thing that the GitLab Terraform template does. But sometime the differences are very nuanced. Also, changes happen in separate repositories, so we can't keep track of testing everything equally with unit tests, as on repo might change and the other not be aware of.
Proposal
A more robust test could be to have a template project, which uses the GitLab Terraform templates but allows to override the terraform-image used via environment variable.
So the terraform-image pipelines could trigger this upstream pipeline as part of its own pipeline, and pass the desired terraform image upstream to test whether the integration is green.
More simpler could be to add a child pipeline to this project using something like:
test-template:
trigger:
include:
- template: Terraform.gitlab-ci.yml