https://github.com/ukhomeoffice/dq-tf-testsuite
https://github.com/ukhomeoffice/dq-tf-testsuite
hodq terraform testing
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ukhomeoffice/dq-tf-testsuite
- Owner: UKHomeOffice
- License: mit
- Created: 2017-11-23T10:05:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-20T09:12:47.000Z (about 6 years ago)
- Last Synced: 2025-02-16T21:26:09.331Z (3 months ago)
- Topics: hodq, terraform, testing
- Language: Shell
- Size: 12.7 KB
- Stars: 1
- Watchers: 17
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://quay.io/repository/ukhomeofficedigital/dq-tf-testsuite)
# DQ Terraform Test Suite
The point of this image is just to be a short hand so all our Terraform modules repositories don't need to have the same boiler plate stuff in and we can centralise rules and test steps in one place rather than many.
## Usage
Add this to a .drone.yml in the root of the repo:
```yaml
pipeline:testsuite:
image: quay.io/ukhomeofficedigital/dq-tf-testsuite:latest
privileged: true
commands: run
```
Trust the repo in the drone uiTo run locally with drone exec you'll need to add `--repo.trusted` so:
```bash
drone exec --repo.trusted
```## What does it test
Right now its relatively simple and will only test the following things in order (see [run.sh](run.sh) for details):
1. [terraform fmt](https://www.terraform.io/docs/commands/fmt.html)
2. [tflint](https://github.com/wata727/tflint)
3. [tf-testrunner](https://github.com/ukhomeoffice/tf-testrunner)