provider-test-patterns
hashicorp/agent-skills/plugins/terraform/skills/provider-test-patterns/SKILL.md
Terraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigStateChecks with custom statecheck.StateCheck implementations, plan checks, CompareValue for cross-step assertions, config helpers, import testing with ImportStateKind, sweepers, and scenario patterns (basic, update, disappears, validation, regression), and ephemeral resource testing with the echoprovider package. Use when writing, reviewing, or debugging provider acceptance tests, including questions about statecheck, plancheck, TestCheckFunc, CheckDestroy, ExpectError, import state verification, ephemeral resources, or how to structure test files.
- Reads credentials
Licensed with conditions — read it at the source. Read it on GitHub.
More agent context in hashicorp/agent-skills
20 other files this repository gives its agents.
AGENTS.md
Skill
- aws-ami-builderplugins/packer/skills/aws-ami-builder/SKILL.md
- azure-image-builderplugins/packer/skills/azure-image-builder/SKILL.md
- push-to-registryplugins/packer/skills/push-to-registry/SKILL.md
- windows-builderplugins/packer/skills/windows-builder/SKILL.md
- azure-verified-modulesplugins/terraform/skills/azure-verified-modules/SKILL.md
- new-terraform-providerplugins/terraform/skills/new-terraform-provider/SKILL.md
- provider-actionsplugins/terraform/skills/provider-actions/SKILL.md
- provider-configurationplugins/terraform/skills/provider-configuration/SKILL.md
- provider-docsplugins/terraform/skills/provider-docs/SKILL.md
- provider-ephemeral-resourcesplugins/terraform/skills/provider-ephemeral-resources/SKILL.md
- provider-framework-migrationplugins/terraform/skills/provider-framework-migration/SKILL.md
- provider-resourcesplugins/terraform/skills/provider-resources/SKILL.md
- refactor-moduleplugins/terraform/skills/refactor-module/SKILL.md
- run-acceptance-testsplugins/terraform/skills/run-acceptance-tests/SKILL.md
- terraform-policyplugins/terraform/skills/terraform-policy/SKILL.md
- terraform-search-importplugins/terraform/skills/terraform-search-import/SKILL.md
- terraform-stacksplugins/terraform/skills/terraform-stacks/SKILL.md
- terraform-style-guideplugins/terraform/skills/terraform-style-guide/SKILL.md
- terraform-testplugins/terraform/skills/terraform-test/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

