Zum Inhalt springen

Terratest Updates & Release Notes

Einträge
30
Quellen
1
Zuletzt aktualisiert

Folge Terratest, um die Release Notes in deinen Feed zu holen.

Terratest von Gruntwork

Terratest v2.0.0: Erstes stabiles v2-Release mit 16 Go-Modulen

Terratest v2.0.0 ist das erste stabile v2-Release, bei dem alle 16 Go-Module unter /v2-Importpfaden einzeln installierbar sind, sodass Tests nur die SDKs der tatsächlich importierten Module laden, während der Umstieg von v1 hauptsächlich das Umschreiben von Imports erfordert und v1 noch 12 Monate lang nur Sicherheitskorrekturen erhält.

Terratest v2.0.0 is the first stable release of v2. All 16 modules are tagged at v2.0.0 in lockstep, and each one installs on its own.

TL;DR: Terratest is now 16 Go modules under /v2 import paths, so a test pulls in only the SDKs of the modules it imports. Most of the upgrade from v1 is rewriting imports, and the compiler finds every other change except two Kubernetes behavior changes, listed below. v1 gets security fixes only, for 12 months after this release.

Upgrading from v1

The v2 migration guide walks through the whole move. What changes for a v1 user:

  • Import paths: every module moves to github.com/gruntwork-io/terratest/modules/<name>/v2. The rewriting imports page has the sed commands, and the cases a blind find and replace gets wrong.
  • Utility packages: random, files, logger, shell, retry and testing now live in core/v2.
  • Package names: http-helper, dns-helper and test-structure become httphelper, dnshelper and teststructure, in the import path and in the identifier.
  • Deprecated helpers removed: code still calling terraform.Apply calls terraform.ApplyContext(t, ctx, ...) instead, which is the replacement the v1 deprecation warnings already named. …

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v2.0.0-beta.2: Funktionen aus teststructure verschoben

Terratest v2.0.0-beta.2 verschiebt acht Funktionen von teststructure in die Module aws, k8s, packer und ssh (Breaking Change) und verkleinert dadurch die Abhängigkeitsgraphen deutlich, etwa von 301 auf 104 go.sum-Zeilen bei teststructure.

Terratest v2 lockstep release. All 16 submodules are tagged at v2.0.0-beta.2.

Breaking changes

Eight functions moved to the module that owns the type they operate on, so teststructure no longer pulls in aws, k8s, packer and ssh (#1877). Signatures and on-disk filenames are unchanged, so every call site is a compile error and go build ./... finds all of them.

beta.1 beta.2
teststructure.{Save,Load}Ec2KeyPair aws.{Save,Load}Ec2KeyPair
teststructure.{Save,Load}KubectlOptions k8s.{Save,Load}KubectlOptions
teststructure.{Save,Load}PackerOptions packer.{Save,Load}PackerOptions
teststructure.{Save,Load}SSHKeyPair ssh.{Save,Load}SSHKeyPair

Nothing else moved. RunTestStage, the Terraform helpers, SaveString/LoadString and the generic SaveTestData/LoadTestData all stay put.

Smaller dependency graph

This closes #1875, which reported that the v2 split was undercut by teststructure requiring seven modules and k8s requiring aws for a single call.

module beta.1 beta.2
teststructure 301 104
k8s 259 160
helm 316 219

go.sum lines. k8s and helm no longer carry any aws-sdk-go-v2 entries; importing teststructure for RunTestStage no longer pulls in the AWS SDK or client-go.

Behavior changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v2.0.0-beta.1: Aufteilung in 16 unabhängige Go-Module

Terratest v2.0.0-beta.1 teilt die Bibliothek in 16 unabhängige Go-Module unter /v2-Importpfaden auf, entfernt veraltete APIs und Hilfspakete, benennt Pakete in httphelper, dnshelper und teststructure um und setzt mindestens Go 1.26 voraus.

This is the first beta of Terratest v2. It splits the library into 16 independent Go modules under /v2 import paths and completes the v2 API cutdown. This is a prerelease published for soak testing ahead of v2.0.0.

This release covers all 16 v2 modules. It is anchored to the core tag, but every module listed under Install below is tagged at v2.0.0-beta.1 and independently installable. This is not a core-only release.

✨ Highlights

  • Modularization into 16 independent modules. Every domain is now its own Go module at github.com/gruntwork-io/terratest/modules/<name>/v2. Consumers fetch and version each module independently and pull only its dependency closure. (addresses #445 and #1492)
  • Smaller dependency and CVE surface. A consumer that only uses the AWS helpers drops from a 332-line go.sum to 72, a 78% reduction, with zero Kubernetes, Azure, or GCP SDKs in the build. If you do not import modules/k8s/v2, the Kubernetes client and its CVEs (#1071, #1072, #1391) are simply not present.
  • API cutdown. Removed the cmd/ binaries, the collections / environment / git core utilities, version-checker, slack, and every v1 // Deprecated: alias.
  • Idiomatic package names. http-helper becomes httphelper, dns-helper becomes dnshelper, test-structure becomes teststructure.
  • Minimum Go 1.26.

⚠️ Breaking Changes

/v2 import paths (every module) …

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 1.0.1

Startet die v1-Wartungsphase und markiert die Pakete modules/collections, modules/environment, modules/git, modules/version-checker und modules/slack als deprecated, da sie in v2 entfernt werden, ohne dass sich zur Laufzeit etwas ändert.

Highlights

This release starts the Terratest v1 maintenance phase. It is non-breaking and safe to upgrade to from any recent v1.x: nothing is removed or changed at runtime. The headline change is // Deprecated: annotations on the packages slated for removal in v2, each with inline guidance on the standard-library (or third-party) replacement.

Deprecated (removed in v2, not in this release):

  • modules/collections -> standard library slices
  • modules/environment -> os.Getenv at the call site
  • modules/git -> shell out to git with os/exec
  • modules/version-checker -> shell out to check a binary's version
  • modules/slack -> the github.com/slack-go/slack client directly

Each deprecated symbol's doc comment shows the concrete replacement.

v1 maintenance policy: security fixes only, delivered on the v1 branch, until 12 months after v2.0.0 reaches general availability. v2 ships under new /v2 module paths, so v1-pinned consumers are unaffected. This commit is the permanent v1 head; the long-lived v1 branch is cut from here. A v1-to-v2 import path map is included at docs/v2-import-map.md.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 1.0.0

Erste stabile Terratest-Version mit semantischer Versionierung, durchgängigem context.Context in Cloud-API-Helfern, mockbaren Azure- und GCP-Clients, aktualisierten SDKs und vollständiger Unterstützung von Terragrunt v1.0.

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. …

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.56.0

Neue Funktionen CreateJobFromCronJob und CreateJobFromCronJobE für Kubernetes sowie Korrekturen bei SetMetadata, beim Plan-Parsing für Terraform 1.14+ und bei der Umstellung von CronJob auf batch/v1.

✨ 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. …

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.55.0

Entfernt die satori/go.uuid-Abhängigkeit (CVE-2021-3538), hebt Go auf 1.24.0 und die Kubernetes-Client-Bibliotheken auf v0.35.0 an und passt das terragrunt-Modul an das neue CLI-Design an.

What's Changed

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.54.0...v0.55.0

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.54.0

Behebt das Ignorieren von TerragruntArgs und TerraformArgs, ergänzt die Terragrunt-Befehle ValidateAll, RunAll, FormatAll und OutputListAll und aktualisiert golang.org/x/crypto.

What's Changed

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.53.0...v0.54.0

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.53.0

Enthält eine Korrektur eines Tippfehlers in der Doku zu InitAndValidateInputsE() und ein Update von ulikunitz/xz; die Aufteilung in unabhängige Go-Module wurde wieder zurückgenommen.

What's Changed

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.52.0...v0.53.0

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.52.0

Neu sind SSH-Zertifikatsauthentifizierung, ExecPod-Funktionen für Kubernetes-Pods und Terragrunt-run-all-Helfer, außerdem wurden ein Absturz in helm.UnmarshalK8SYaml und die Argumentreihenfolge beim Output-Befehl korrigiert.

What's Changed

New Contributors

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.51.0...v0.52.0

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.51.0

Ergänzt Unterstützung für terragrunt stack generate, stack run, stack output und stdin beim run-Befehl sowie die Trennung von Terragrunt- und Terraform-Argumenten.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.50.0

Bringt CronJob-Unterstützung, Unterstützung für terragrunt stack init, GOOGLE_OAUTH_ACCESS_TOKEN sowie Korrekturen bei ResourceGroupExists und der Portauswahl nach Namen in ForwardPortE.

What's Changed

New Contributors

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.49.0...v0.50.0

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.49.0

Betrifft die Module terraform, helm, azure, aws, k8s, logger und packer und bringt unter anderem Unterstützung für mehrere YAML-Dokumente, das neue Azure-SDK für Resource Groups, ECR-Repo-Policies und einen Helfer zum Parsen von packer-manifest.json.

Modules affected

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

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest 0.48.2

Betrifft mehrere Module und ergänzt unter anderem RunCommandAndGetStdOutErr, S3-Bucket-Verschlüsselung, request-timeout für kubectl, Azure Container Apps und Datenbankunterstützung.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v0.48.1: Korrekturen in helm, azure, aws und k8s

Version 0.48.1 behebt fehlschlagende Unit-Tests (TestRemoteChartRender, terraform-azure-aks-example), berücksichtigt options.RestConfig in tunnel.ForwardPortE und ergänzt eine Funktion zum Abrufen der neuesten Version eines Policy-Dokuments.

Modules affected

  • helm
  • azure
  • aws
  • k8s

What's Changed

New Contributors

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.48.0...v0.48.1

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v0.48.0: Logger, AWS-Helfer und OPA-Erweiterungen

Version 0.48.0 ersetzt veraltete logger.Logf und logger.Log durch den neuen Logger, macht Log und Logf threadsicher und ergänzt unter anderem GetWhetherSchemaExistsInRdsPostgresInstance, eine Put-Methode für den AWS-Secrets-Manager-Helper sowie Opa EvalWithOutput.

Modules affected

  • terraform
  • aws
  • helm
  • logger
  • http-helper
  • opa
  • docker

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v0.47.2: ssh- und terraform-Ausgabe verbessert

Version 0.47.2 aktualisiert eine Logzeile im ssh-Modul, entfernt unnötige Info-Zeilen aus der terraform-Ausgabe und aktualisiert die rexml-Abhängigkeit.

Modules affected

  • ssh
  • terraform

Description

  • Updated logging line in ssh module
  • Refined terraform output by removing unnecessary info lines
  • Update rexml dependency

Related links

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.47.1...v0.47.2

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v0.47.1: VPC, Route53 und OpenTofu 1.8

Version 0.47.1 erweitert die VPC-Struktur um CIDR-Block- und IPv6-Zuordnungen, ergänzt Route53, erlaubt Fehler bei bestimmten Warnmeldungen, bringt ein Upgrade auf OpenTofu 1.8 und aktualisiert mehrere Abhängigkeiten.

Modules affected

  • aws
  • retry

Description

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v0.47.0: Unterstützung für Packer 1.10

Version 0.47.0 unterstützt Packer 1.10, korrigiert die Fehlerprüfung in Azure und behebt Tests und Dokumentation für die Module helm, aws und packer.

Modules affected

  • packer
  • aws
  • helm
  • azure

Description

  • Added support for Packer 1.10
  • Fixed error checking in Azure
  • Fixed tests and documentation for helm, aws, packer modules
<!-- RELEASE_NOTES_DRAFTER_MARKER_CONTRIBUTORS_NEXT -->

Related links

<!-- Links to each PR or issue that are being addressed in this release. The drafter will autoinclude each merged PR. --> <!-- RELEASE_NOTES_DRAFTER_MARKER_RELATED_LINKS_NEXT -->

Originalquelle(öffnet in neuem Tab)Problem melden

Terratest von Gruntwork

Terratest v0.46.16: go-getter aktualisiert

Version 0.46.16 aktualisiert github.com/hashicorp/go-getter von 1.7.4 auf 1.7.5.

Description

  • Updated github.com/hashicorp/go-getter from 1.7.4 to 1.7.5.
<!-- RELEASE_NOTES_DRAFTER_MARKER_CONTRIBUTORS_NEXT -->

Related links

<!-- Links to each PR or issue that are being addressed in this release. The drafter will autoinclude each merged PR. --> <!-- RELEASE_NOTES_DRAFTER_MARKER_RELATED_LINKS_NEXT -->

Originalquelle(öffnet in neuem Tab)Problem melden