Skip to content

chore(deps): update module github.com/gruntwork-io/terratest to v1#74

Open
anaconda-renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-gruntwork-io-terratest-1.x
Open

chore(deps): update module github.com/gruntwork-io/terratest to v1#74
anaconda-renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-gruntwork-io-terratest-1.x

Conversation

@anaconda-renovate
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
github.com/gruntwork-io/terratest require major v0.56.0v1.0.0
renovate update details

Field Value
manager gomod
categories golang
datasource go
depName github.com/gruntwork-io/terratest
depType¹ require
packageName github.com/gruntwork-io/terratest
sourceUrl https://github.com/gruntwork-io/terratest
updateType major
versioning semver

¹ only available for some managers


Release Notes

gruntwork-io/terratest (github.com/gruntwork-io/terratest)

v1.0.0

Compare Source

Terratest 1.0.0 is the first stable release of the project. From this release forward, Terratest follows semantic versioning: breaking changes are restricted to major releases, and renamed or replaced symbols stay around as deprecated aliases in the v1 line. See the v1.0 announcement post for the narrative; the notes below cover what shipped.

✨ Highlights

  • Context plumbing throughout. Every cloud-API helper now takes an explicit context.Context as its second argument. FooContext (fail-fast) and FooContextE (returns the error) are the canonical entrypoints; the bare Foo and FooE forms remain as deprecated aliases.
  • Mockable SDK clients. Most Azure and GCP helpers that previously hid SDK client construction now ship with a WithClient sibling that accepts an injected client. Drive Terratest against Azure's azfake server or a GCP test double for fast unit tests with zero credentials.
  • Modern, supported underlying SDKs. modules/azure migrated off Microsoft's archived "track 1" SDK onto sdk/resourcemanager; AWS S3 helpers moved off the deprecated s3/manager to s3/transfermanager.
  • Terragrunt v1.0 feature parity. The terragrunt module fully supports Terragrunt v1.0's CLI redesign with new wrappers and single-unit variants. Terragrunt-specific code is separated from modules/terraform into its own module.
  • Reliability fixes. EC2 list calls paginate, OPA policy downloads deduplicate, several panics on empty SDK responses are now errors.

⚠️ Breaking Changes

Azure SDK migration

modules/azure moved off the archived "track 1" Azure SDK onto the actively maintained sdk/resourcemanager. Users who import the underlying SDK directly need to update import paths, move field access under .Properties, and replace iterators with pagers. The release also dropped 8 deprecated Get*ClientE getters in favor of Create*ClientE, renamed 4 CreateNew*Client* factories (with deprecated aliases), fixed the NsgRuleSummary.SourceAdresssPrefixes typo, and changed GetVirtualMachineImage{,E} to return *VMImage. See the Azure migration guide for full mechanics.

AWS S3 uploader

The four NewS3Uploader* helpers now return *transfermanager.Client instead of *manager.Uploader. The call shape moves from uploader.Upload(ctx, &s3.PutObjectInput{...}) to client.UploadObject(ctx, &transfermanager.UploadObjectInput{...}). Types live under github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager.

GCP Pub/Sub

modules/gcp/pubsub.go moved from cloud.google.com/go/pubsub v1 to v2. Wrapper shapes are unchanged, but callers driving the underlying client directly switch from client.Topic("name") / client.Subscription("name") handles to TopicAdminClient / SubscriptionAdminClient calls that take fully qualified resource names.

Terragrunt module split

Terragrunt-specific helpers were removed from modules/terraform/ and modules/test-structure/ in favor of the dedicated modules/terragrunt/ package: TgApplyAll, TgDestroyAll, TgPlanAllExitCode, ValidateInputs, InitAndValidateInputs, AssertTgPlanAllExitCode, TgInvalidBinary, TerragruntDefaultPath, ExtraArgs.ValidateInputs, NewTerragruntValidationOptions, and the TG constant. Terragrunt stack output keys were also renamed. See the terragrunt module migration table.

Kubernetes kubeconfig handling

GetKubernetesClientFromOptionsContextE now logs the kubeconfig load error before falling back to in-cluster authentication; previously the fallback was silent. A new KubectlOptions.InClusterAuth = true opt-in skips kubeconfig loading entirely for callers who want fully explicit auth.

testing.TestingT adoption

Helper signatures consistently take testing.TestingT (an interface) instead of the concrete *testing.T. Calls from *testing.T are unaffected; callers that wrap or substitute the test handle may need updates.

✨ New Features

WithClient injection helpers across Azure and GCP

Most Azure and GCP helpers now ship with a *WithClient sibling that accepts a pre-built SDK client, enabling unit testing against Azure's azfake server, GCP test doubles, and similar fakes without standing up real cloud resources or providing credentials.

Terragrunt v1.0 feature parity

All terraform-passthrough commands use terragrunt run -- <command> and multi-unit functions use terragrunt run --all -- <command>. Generic Run / RunE provide an escape hatch. New command wrappers: Render, RenderJSON, Graph, HclValidate, OutputAllJson, plus single-unit variants for Init, Plan, Apply, Destroy, Validate, and OutputJson.

GCP Pub/Sub helpers

AssertTopicExists and AssertSubscriptionExists added to modules/gcp/pubsub.go. Thanks to @​Amit2465 for the contribution.

🔧 Code Quality & API Cleanup

  • Godoc and // Deprecated: annotations. A v1 documentation pass closed godoc gaps so the API surface renders cleanly on pkg.go.dev. Every renamed or replaced symbol carries a machine-readable // Deprecated: line so go vet, staticcheck, and IDE LSPs surface upgrade guidance automatically.
  • Strict golangci-lint v2 wired into pre-commit and CI across the project.
  • interface{}any sweep across the codebase.
  • collections generics: functions are now generic; ListContains is deprecated in favor of slices.Contains.

🐛 Bug Fixes

  • EC2 list pagination: DescribeInstances and DescribeTags now paginate; previously capped silently at 1,000 results.
  • Concurrent OPA download deduplication: modules/opa/download_policy.go uses singleflight so concurrent calls for the same rulePath share a single download.
  • Empty-response panics → errors: RDS, IAM, OCI list calls, and several Azure SDK-response paths return typed errors on empty responses where they previously panicked on unchecked slice access.
  • ACM pagination: ACM list calls now paginate.
  • OCI nil-safety: ListVcns and related calls loop on OpcNextPage; image sort handles nil timestamps; nil-pointer guards added across the package.
  • SSH file-handle leak: SCPDirFromContextE closes file handles on each download.
  • OPA cache concurrency race: cache initialization is now race-free under concurrent test runs.
  • Azure NSG field name typo: NsgRuleSummary.SourceAdresssPrefixes renamed to SourceAddressPrefixes.

📦 Dependency Updates

  • AWS SDK v2 bumped across every service used by Terratest; s3/manager (deprecated) replaced with s3/transfermanager.
  • GCP SDKs current: cloud.google.com/go/storage 1.62, cloud.google.com/go/pubsub/v2 2.4, google.golang.org/api 0.276.
  • Azure migrated off azure-sdk-for-go v51 onto the actively maintained sdk/resourcemanager modules (compute, network, storage, keyvault, sql, servicebus, frontdoor, monitor, recoveryservices, and others).
  • mitchellh/go-homedir (archived) removed as a direct dependency in favor of os.UserHomeDir; denisenkom/go-mssqldb swapped for the Microsoft-maintained fork.
  • google.golang.org/grpc 1.80, github.com/docker/cli 29.x, go.opentelemetry.io/otel/sdk 1.43, github.com/jackc/pgx/v5 5.9.
  • OpenTofu pin updated to 1.11.6; Terragrunt baseline bumped to v1.0.2.

📖 Documentation Updates

⚙️ Process Updates

  • All CI moved from CircleCI to GitHub Actions.
  • Multi-arch (linux / darwin / windows × amd64 / arm64 / 386) build-and-release workflow with SHA256SUMS.
  • go-mod-tidy-check workflow added.

Full Changelog: gruntwork-io/terratest@v0.56.0...v1.0.0


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • "every weekday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@anaconda-renovate anaconda-renovate Bot requested a review from a team as a code owner June 2, 2026 14:12
@anaconda-renovate anaconda-renovate Bot requested review from ekeih and ximena9201 June 2, 2026 14:12
@anaconda-renovate
Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 49 additional dependencies were updated

Details:

Package Change
filippo.io/edwards25519 v1.1.0 -> v1.1.1
github.com/aws/aws-sdk-go-v2 v1.32.5 -> v1.41.6
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 -> v1.7.9
github.com/aws/aws-sdk-go-v2/config v1.28.5 -> v1.32.16
github.com/aws/aws-sdk-go-v2/credentials v1.17.46 -> v1.19.15
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 -> v1.18.22
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 -> v1.4.22
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 -> v2.7.22
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 -> v1.4.23
github.com/aws/aws-sdk-go-v2/service/acm v1.30.6 -> v1.38.2
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.51.0 -> v1.66.1
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.44.0 -> v1.69.1
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 -> v1.57.2
github.com/aws/aws-sdk-go-v2/service/ec2 v1.193.0 -> v1.297.1
github.com/aws/aws-sdk-go-v2/service/ecr v1.36.6 -> v1.57.1
github.com/aws/aws-sdk-go-v2/service/ecs v1.52.0 -> v1.78.1
github.com/aws/aws-sdk-go-v2/service/iam v1.38.1 -> v1.53.8
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 -> v1.13.8
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 -> v1.9.14
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 -> v1.11.22
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 -> v1.13.22
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 -> v1.19.22
github.com/aws/aws-sdk-go-v2/service/kms v1.37.6 -> v1.50.5
github.com/aws/aws-sdk-go-v2/service/lambda v1.69.0 -> v1.89.1
github.com/aws/aws-sdk-go-v2/service/rds v1.91.0 -> v1.118.1
github.com/aws/aws-sdk-go-v2/service/route53 v1.46.2 -> v1.62.6
github.com/aws/aws-sdk-go-v2/service/s3 v1.69.0 -> v1.99.1
github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.34.6 -> v1.41.6
github.com/aws/aws-sdk-go-v2/service/sns v1.33.6 -> v1.39.16
github.com/aws/aws-sdk-go-v2/service/sqs v1.37.1 -> v1.42.26
github.com/aws/aws-sdk-go-v2/service/ssm v1.56.0 -> v1.68.5
github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 -> v1.30.16
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 -> v1.35.20
github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 -> v1.42.0
github.com/aws/smithy-go v1.22.1 -> v1.25.0
github.com/jackc/pgx/v5 v5.7.1 -> v5.9.0
golang.org/x/sync v0.18.0 -> v0.20.0
github.com/davecgh/go-spew v1.1.1 -> v1.1.2-0.20180830191138-d8f796af33cc
github.com/pmezard/go-difflib v1.0.0 -> v1.0.1-0.20181226105442-5d4384ee4fb2
golang.org/x/crypto v0.45.0 -> v0.49.0
golang.org/x/mod v0.29.0 -> v0.33.0
golang.org/x/net v0.47.0 -> v0.52.0
golang.org/x/oauth2 v0.30.0 -> v0.36.0
golang.org/x/sys v0.38.0 -> v0.42.0
golang.org/x/term v0.37.0 -> v0.41.0
golang.org/x/text v0.31.0 -> v0.35.0
golang.org/x/time v0.9.0 -> v0.15.0
golang.org/x/tools v0.38.0 -> v0.42.0
google.golang.org/protobuf v1.36.8 -> v1.36.11

@anaconda-renovate anaconda-renovate Bot force-pushed the renovate/github.com-gruntwork-io-terratest-1.x branch 2 times, most recently from cde40d8 to 79203a8 Compare June 5, 2026 12:24
@anaconda-renovate anaconda-renovate Bot force-pushed the renovate/github.com-gruntwork-io-terratest-1.x branch from 79203a8 to e20cf5d Compare June 5, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants