-
terratest
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Note: All the source code is found in this monorepo. Link to the appropriate folder will be highlighted in relevant sections.
The Terratest Go library leverages this to define a variety of test cases used to test Docker images, cloud infrastructure defined for AWS, Azure, GCP, Kubernetes, and many more.
Most of the steps in the function above are similar to the Terratest test defined in the previous example. However, there are a few differences. We explicitly get the versioning information using Golang AWS SDK using the bucket ID. The bucket ID is exposed by the Terraform config as part of its configuration. This becomes the actual value of for assertion.
Related posts
-
Using Terratest to test your infrastructure
-
Things you wish you didn't need to know about S3
-
my first go project, a CLI application to store IP addresses
-
Send an Email through AWS SES with GoLang
-
Trunk Based Development: Confused about how to test code before pushing to main? How does the deploy process work for many environments?