Skip to content

fix: terratest 1.x OutputContext migration - #61

Merged
ben-vaughan-nttd merged 1 commit into
mainfrom
fix/terratest-minimal-20260807
Aug 11, 2026
Merged

fix: terratest 1.x OutputContext migration#61
ben-vaughan-nttd merged 1 commit into
mainfrom
fix/terratest-minimal-20260807

Conversation

@ben-vaughan-nttd

Copy link
Copy Markdown
Contributor

Minimal terratest 1.x fix for Dependabot PR #60.

  • Migrate terraform.Output* to *Context in tests only
  • Refresh modules via go get -u ./... and go mod tidy
  • Validated with make check and pre-commit locally

@ben-vaughan-nttd
ben-vaughan-nttd requested a review from a team as a code owner August 7, 2026 16:52
@github-actions github-actions Bot added the fix label Aug 7, 2026

@aarti-joshi-nttd aarti-joshi-nttd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Things

  • Correctly migrates three deprecated terraform.Output calls to terraform.OutputContext, verified against terratest v1.0.1's actual signature.
  • go 1.26.0 directive matches the repo's .tool-versions pin, avoiding toolchain mismatch.
  • All CI checks pass, including Run Tests / Terraform Tests.

No blocking issues found.

Non-blocking suggestions

  • Consider t.Context() instead of context.Background(), consistent with upstream terratest v1.0.1 examples.
  • Large transitive dependency bump bundled with a "minimal" fix — worth a note in the PR description.

@rakesh-gorige-nttd rakesh-gorige-nttd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: fix: terratest 1.x OutputContext migration

Author: ben-vaughan-nttd


What This PR Does Well

  • Correctly migrates deprecated terratest Output* (and related) calls to the terratest 1.x *Context API.
  • Keeps changes focused in test code; no Terraform module or production logic touched.
  • CI is fully green, including Run Tests / Terraform Tests, validating the dependency bump end-to-end.

Fixes Required

Blocking

No blocking issues found.

Non-Blocking

# File Issue
1 go.mod go get -u ./... also bumps AWS SDK and transitive deps beyond terratest; consider scoping future bumps to terratest only.
2 test files Optional: use t.Context() instead of repeated context.Background() on Go 1.26.

Review — approved

Verified terratest 1.x migration in tests only. CI green. No blocking issues.

@ben-vaughan-nttd
ben-vaughan-nttd merged commit d2378cf into main Aug 11, 2026
18 checks passed
@ben-vaughan-nttd
ben-vaughan-nttd deleted the fix/terratest-minimal-20260807 branch August 11, 2026 12:59
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.

3 participants