Pular para o conteúdo
Kitbay
SkillOficialactive

provider-test-patterns

MPL-2.0Atualizado em 4 de nov. de 2026925Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

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