Skip to content

Releases: gruntwork-io/terratest

v0.56.0

13 Feb 17:02
cbe2ee4

Choose a tag to compare

✨ New Features

CreateJobFromCronJob and CreateJobFromCronJobE added.

The CreateJobFromCronJob and CreateJobFromCronJobE functions support creating Kubernetes cron jobs in a given namespace. This mirrors the behavior of the kubectl create job ... --from=cronjob/... command and provides a native way to trigger and test CronJob configurations within Terratest.

Special thanks to @Steffas for contributing this feature.

🐛 Bug Fixes

Preserve existing instance metadata in SetMetadata

Updates the newMetadata function to properly copy existing metadata items before applying new key-value pairs. This resolves an issue introduced in v0.55.0 where functions like SetMetadata and AddSshKey were accidentally overwriting all existing instance metadata instead of merging the new values.

Plan output parsing for Terraform 1.14+ fixed

Removes the trailing period requirement from the planWithChangesRegexp regular expression used by GetResourceCount. This resolves parsing failures caused by Terraform 1.14's new Actions feature, which appends additional text (e.g., . Actions: N to invoke.) to the standard plan summary line.

Update CronJob to use the batch/v1 API

Updates the CronJob implementation under the hood to use the stable batch/v1 API instead of batch/v1beta1. This restores compatibility with modern Kubernetes clusters, as the older v1beta1 API was completely removed in Kubernetes 1.25.

📖 Documentation Updates

Homepage examples for Terragrunt updated

Examples relevant to Terragrunt have been fixed in the https://terragrunt.gruntwork.io site.

⚙️ Process Updates

Golang bumped to 1.26

The version of Golang in go.mod has been updated to 1.26.

What's Changed

New Contributors

Full Changelog: v0.55.0...v0.56.0

v0.55.0

14 Jan 03:26
99cbde9

Choose a tag to compare

What's Changed

Full Changelog: v0.54.0...v0.55.0

v0.54.0

24 Nov 00:19
e743258

Choose a tag to compare

What's Changed

Full Changelog: v0.53.0...v0.54.0

v0.53.0

14 Nov 20:45
b23d0e3

Choose a tag to compare

What's Changed

Full Changelog: v0.52.0...v0.53.0

v0.52.0

26 Oct 23:27
e011dc7

Choose a tag to compare

What's Changed

  • feat: Add SSH certificate authentication support for Terratest by @james00012 in #1594
  • Update golang.org/x/tools to v0.36.0 for Go 1.25+ compatibility by @james00012 in #1593
  • fix: prevent segfault in helm.UnmarshalK8SYaml with empty YAML documents by @james00012 in #1597
  • Add ExecPod functions to execute commands in Kubernetes pods by @james00012 in #1599
  • Add terragrunt run-all helpers and refactor helm module by @james00012 in #1601
  • docs: add helm as an entry to package table by @Sacquer in #1604
  • Ensuring that multiple dummy servers can use the same handlers by @Malhavok in #1603
  • Fix order of ExtraArgs for Output command with non-empty key (fixes #1606) by @dee-kryvenko in #1607

New Contributors

Full Changelog: v0.51.0...v0.52.0

v0.51.0

23 Sep 04:40
af08d0f

Choose a tag to compare

What's Changed

Full Changelog: v0.50.0...v0.51.0

v0.50.0

15 Jun 16:37
1ce1b74

Choose a tag to compare

What's Changed

  • add cronjob by @james03160927 in #1553
  • fix ResourceGroupExists by @james03160927 in #1552
  • allow GOOGLE_OAUTH_ACCESS_TOKEN by @james03160927 in #1555
  • Adjust warning patterns by @james03160927 in #1550
  • chore: Offboarding Levko by @yhakbar in #1558
  • fix: Respect port selection by name by services in ForwardPortE by @s-diez in #1557
  • fix: Helm example deployment test by @james03160927 in #1559
  • Updated the subnet struct and corresponding function to fetch the subnet CIDR range by @Atchuthmullapudi in #1561
  • Implement support for terragrunt stack init by @james03160927 in #1560

New Contributors

Full Changelog: v0.49.0...v0.50.0

v0.49.0

08 May 17:34
8e99d31

Choose a tag to compare

Modules affected

  • terraform
  • helm
  • azure
  • aws
  • k8s
  • logger
  • packer

What's Changed

  • feat: Creating a test for TF_LOG by @james03160927 in #1512
  • feat: handle multiple yaml doc by @james03160927 in #1514
  • feat: use the new sdk for azure resource group by @james03160927 in #1511
  • feat: Stop DynamoDB methods with E Failing Immediately by @robmorgan in #1507
  • feat: Get and Put for ECR repo policies by @felixfriedrich in #1519
  • feat: include --version in helm upgrade by @jijiechen in #1532
  • feat: add mixed vars support by @james03160927 in #1517
  • feat: Add helper function for parsing packer-manifest.json by @james03160927 in #1546
  • feat: Support a s3:putobject by @james03160927 in #1525
  • feat: capture terraform stdout stderr and exitcode separately by @james03160927 in #1530
  • feat: add UnmarshalK8SYamlsE by @james03160927 in #1533
  • feat: add support for extra arguments by @james03160927 in #1523
  • feat: allow --backend-config to use file path by setting the value to nil by @james03160927 in #1539
  • feat: Support for ListNamespaces function by @james03160927 in #1543
  • feat: K8S fix forward to service port by @james03160927 in #1547
  • fix: add test for duplicate key by @james03160927 in #1518
  • fix: support custom TG logger settings by @bt-macole in #1509
  • docs: Improve README for terraform database example module by @james03160927 in #1515
  • chore: adjust fixture to fix broken tests by @james03160927 in #1548
  • chore: add RenderTemplateAndGetStdOutErrE & RunHelmCommandAndGetStdOutErrE by @james03160927 in #1526
  • chore: Update parseListOfMaps to handle non-map data structures by @james03160927 in #1529
  • chore: add test for literal block by @james03160927 in #1535
  • chore: Update CODEOWNERS by @james03160927 in #1554
  • chore: Adding Terragrunt team to CODEOWNERS by @yhakbar in #1513
  • chore(deps): Bump nokogiri from 1.16.5 to 1.18.3 in /docs by @dependabot in #1516
  • chore(deps): Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 by @dependabot in #1527
  • chore(deps): Bump golang.org/x/crypto from 0.32.0 to 0.35.0 by @dependabot in #1541
  • chore(deps): Bump golang.org/x/net from 0.34.0 to 0.38.0 by @dependabot in #1542
  • chore(deps): Bump nokogiri from 1.18.3 to 1.18.8 in /docs by @dependabot in #1545

New Contributors

Full Changelog: v0.48.2...v0.49.0

v0.48.2

04 Feb 16:06
23563d0

Choose a tag to compare

Modules affected

  • shell
  • aws
  • gcp
  • terraform
  • k8s
  • azure
  • database

What's Changed

  • feat: Add RunCommandAndGetStdOutErr by @james03160927
  • feat: Implement functionality for S3BucketServerSideEncryption by @james03160927
  • feat: Add an import SSH key for a specific project by @james03160927
  • feat: Do not merge stderr into stdout by @g7r
  • feat: Add bucket ownership control by @james03160927
  • feat: Add request-timeout options for kubectl by @james03160927
  • feat: Support pagination for GetAllParametersOfRdsInstance by @james03160927
  • feat: Add support for Azure container apps by @tjololo
  • chore(deps): Bump golang.org/x/crypto from 0.29.0 to 0.31.0 by @dependabot
  • feat: Add support for databases by @james03160927
  • chore(deps): Bump golang.org/x/net from 0.31.0 to 0.33.0 by @dependabot
  • feat: Add a new check for private DNS zones by @johannes-engler-mw
  • chore: Update copyright year in README by @ofek
  • fix: Use HasSuffix to check for suffixes by @amangale

New Contributors

Full Changelog: v0.48.1...v0.48.2

v0.48.1

17 Dec 20:50
bb92e35

Choose a tag to compare

Modules affected

  • helm
  • azure
  • aws
  • k8s

What's Changed

  • feat: Adding release instructions in PR by @yhakbar in #1488
  • fix: Fixing the TestRemoteChartRender Unit Test failure by pecifing remote chart version by @james03160927 in #1486
  • fix: Fix terraform-azure-aks-example unit test failure. by @james03160927 in #1489
  • chore: add function to retrieve latest version of a policy document by @james03160927 in #1490
  • fix: honor options.RestConfig in tunnel.ForwardPortE by @jduepmeier in #1464

New Contributors

Full Changelog: v0.48.0...v0.48.1