Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.44 KB

0007-use-terratest-opa-and-go-for-testing.md

File metadata and controls

41 lines (26 loc) · 1.44 KB

7. Use Terratest, Open Policy Agent and Go for testing

Date: 2021-04-15

Status

✅ Accepted

Context

In the Modernisation Platform, we want to have confidence that we can make changes without breaking things.

Decision

We've decided to use the following tools for testing:

Consequences

General consequences

We believe we can cover most of our testing needs with these tools. We recognise that we want smoke tests as well, but will look into these at a later date.

Advantages

  • These tools are open source and well established.
  • By using Go we have a consistent language across testing (Terratest is a Go library).
  • OPA can also be used to test Terraform infrastructure that we cannot easily create and destroy (such as accounts or certificate authorities) by testing the Teraform plan.
  • Cloud Platform are using or evaluating the same tools, so we will be aligned with them.

Disadvantages

  • Go is not one of our core languages.
  • We don't know yet if these tools can be used for smoke tests.