Skip to content

Commit eeb7d5c

Browse files
committed
modularize terratest into 16 /v2 submodules with a go.work workspace
Splits the single module into per-domain modules under modules/<name>/, each declaring github.com/gruntwork-io/terratest/modules/<name>/v2. Tier-0 utilities (logger, testing, retry, random, files, shell) and the relocated internal helpers (collections, formatting) collapse into modules/core/v2. examples/ and test/ stay in the root module. All cross-module imports are rewritten to their /v2 paths, and a root go.work resolves every submodule locally for development.
1 parent d43d8cc commit eeb7d5c

626 files changed

Lines changed: 2667 additions & 3342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/pick-instance-type/main.go

Lines changed: 0 additions & 85 deletions
This file was deleted.

cmd/terratest_log_parser/main.go

Lines changed: 0 additions & 142 deletions
This file was deleted.

examples/terraform-asg-scp-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ aws.FetchFilesFromInstanceContext(t, ctx, awsRegion, sshUserName, keyPair, appSe
5050
Finally, to put all of this together, in your go test you could do something like:
5151

5252
```go
53-
defer test_structure.RunTestStage(t, "grab_logs", func() {
53+
defer teststructure.RunTestStage(t, "grab_logs", func() {
5454
if t.Failed() {
5555
takeElkMultiClusterLogSnapshot(t, examplesDir, awsRegion, "ubuntu")
5656
}

go.work

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
go 1.26.0
2+
3+
use (
4+
.
5+
./modules/core
6+
./modules/ssh
7+
./modules/httphelper
8+
./modules/dnshelper
9+
./modules/docker
10+
./modules/packer
11+
./modules/database
12+
./modules/opa
13+
./modules/aws
14+
./modules/azure
15+
./modules/gcp
16+
./modules/k8s
17+
./modules/helm
18+
./modules/terraform
19+
./modules/terragrunt
20+
./modules/teststructure
21+
)

0 commit comments

Comments
 (0)