本文へスキップ
Kitbay
スキル公式active

provider-test-patterns

MPL-2.02026年11月4日 更新925GitHubスター

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

スキルの内容

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.

できること

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