Skip to content

Commit 0e95162

Browse files
committed
v2 modularization: carve 15 per-domain /v2 submodules
Each remaining domain (ssh, httphelper, dnshelper, docker, packer, database, opa, aws, azure, gcp, k8s, helm, terraform, terragrunt, teststructure) gets its own go.mod with the /v2 SIV; go.work ties all 16 modules together; all importers rewritten to /v2 paths. GOWORK=on workspace build and vet are green. Per-module require pinning + go.sum is release-prep (GOWORK=off stays red until tags, by design).
1 parent f9d2970 commit 0e95162

248 files changed

Lines changed: 411 additions & 351 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.

go.work

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,19 @@ go 1.26.0
33
use (
44
.
55
./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
621
)

modules/aws/account_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package aws_test
33
import (
44
"testing"
55

6-
aws "github.com/gruntwork-io/terratest/modules/aws"
6+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
77
"github.com/stretchr/testify/assert"
88
)
99

modules/aws/acm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/aws/aws-sdk-go-v2/service/acm/types"
1212
"github.com/stretchr/testify/require"
1313

14-
aws "github.com/gruntwork-io/terratest/modules/aws"
14+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
1515
)
1616

1717
// mockAcmClient is a test double for aws.AcmAPI that returns canned responses.

modules/aws/ami_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package aws_test
33
import (
44
"testing"
55

6-
aws "github.com/gruntwork-io/terratest/modules/aws"
6+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
77
"github.com/stretchr/testify/assert"
88
)
99

modules/aws/asg_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
1515

16-
aws "github.com/gruntwork-io/terratest/modules/aws"
16+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
1717
"github.com/gruntwork-io/terratest/modules/core/v2/random"
1818
)
1919

modules/aws/cloudwatch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs/types"
1111
"github.com/stretchr/testify/require"
1212

13-
aws "github.com/gruntwork-io/terratest/modules/aws"
13+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
1414
)
1515

1616
// mockCloudWatchLogsClient is a test double for aws.CloudWatchLogsAPI that returns canned responses.

modules/aws/dynamodb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
1111
"github.com/stretchr/testify/require"
1212

13-
aws "github.com/gruntwork-io/terratest/modules/aws"
13+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
1414
)
1515

1616
// mockDynamoDBClient is a test double for aws.DynamoDBAPI.

modules/aws/ebs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/aws/aws-sdk-go-v2/service/ec2"
1010
"github.com/stretchr/testify/require"
1111

12-
aws "github.com/gruntwork-io/terratest/modules/aws"
12+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
1313
)
1414

1515
// mockEbsClient is a test double for aws.EbsAPI that captures the snapshot ID passed to

modules/aws/ec2-files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"path/filepath"
77

88
"github.com/gruntwork-io/terratest/modules/core/v2/files"
9-
"github.com/gruntwork-io/terratest/modules/ssh"
9+
"github.com/gruntwork-io/terratest/modules/ssh/v2"
1010
"github.com/gruntwork-io/terratest/modules/core/v2/testing"
1111
"github.com/hashicorp/go-multierror"
1212
"github.com/stretchr/testify/require"

modules/aws/ec2-syslog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/aws/aws-sdk-go-v2/service/ec2"
1111
"github.com/stretchr/testify/require"
1212

13-
aws "github.com/gruntwork-io/terratest/modules/aws"
13+
aws "github.com/gruntwork-io/terratest/modules/aws/v2"
1414
)
1515

1616
// mockEc2SyslogClient is a test double for aws.Ec2SyslogAPI.

0 commit comments

Comments
 (0)