github gruntwork-io/terratest v0.36.0

latest releases: v0.46.14, v0.46.13, v0.46.12...
2 years ago

Modules affected

  • aws
  • terraform [BACKWARD INCOMPATIBLE]
  • test-structure [BACKWARD INCOMPATIBLE]

Description

  • Continue searching when we get a deleted bucket. Sometimes, ListBuckets will return buckets that have been deleted, but haven't actually been removed yet. This causes GetBucketTagging to return NoSuchBucket, and the function to return without checking any remaining buckets (which could be the one we actually want). This change ensures that when NoSuchBucket is returned, searching will continue.

  • Copy validated Terraform to /tmp to avoid conflict. Various backward incompatible fixes and improvements for the ValidateAllTerraformModules function:

    • Always copy Terraform configurations to be validated to a temp directory first to avoid conflicts with tests that do not copy their modules to temp directories
    • Fix an issue causing FindTerraformModulePathsInRootE to incorrectly return .terraform hidden directories, leading to excess work or possible false positives
    • For consistency's sake and to avoid an import cycle error when leveraging the CopyTerraformModuleToTemp function, move the ValidateAllTerraformModules function from the terraform package to the test_structure package

Special thanks

Special thanks to the following users for their contribution!

Related links

Don't miss a new terratest release

NewReleases is sending notifications on new releases.