Zum Inhalt springen
Kitbay
SkillOffiziellactive

provider-test-patterns

MPL-2.0Aktualisiert am 4. Nov. 2026925GitHub-Sterne

A HashiCorp skill with patterns for Terraform provider acceptance tests written with terraform-plugin-testing and the Plugin Framework.

Was der Skill vermittelt

A HashiCorp skill with patterns for Terraform provider acceptance tests written with terraform-plugin-testing and the Plugin Framework. It covers test case and step fields, state checks including custom ones, plan checks, comparing values across steps, configuration helpers, import testing, sweepers for leftover resources, common scenarios such as basic, update, disappears, validation and regression tests, and testing ephemeral resources with the echo provider. Reference files go deeper on checks and sweepers.

Funktionen

  • Structure provider acceptance tests
  • Use state checks and plan checks
  • Test resource import
  • Write sweepers for leftover test resources
  • Test ephemeral resources