Skip to content
H

hashicorp/provider-test-patterns

Acceptance test patterns for Terraform providers using terraform-plugin-testing

Open source

Star
#12746in AI Skills
0In stores

Description

provider-test-patterns is an agent skill from HashiCorp with patterns for writing Terraform provider acceptance tests using terraform-plugin…

Highlights

  • TestCase and TestStep structure
  • Custom StateCheck and plan checks
  • Import testing and ImportStateVerify
  • Sweepers and ephemeral resource tests
  • Basic, update, disappears, validation and regression scenarios

Ratings & Reviews

No ratings yet

Be the first to rate hashicorp/provider-test-patterns.

People also visit

P

provider-test-patterns

Terraform provider acceptance test patterns using terraform-plugin-testing

AI Skills
Get
R

run-acceptance-tests

Guide for running acceptance tests for a Terraform provider

AI Skills
Get
H

hashicorp/run-acceptance-tests

Run acceptance tests for Terraform providers using Go's test runner

AI Skills
Get
T

terraform-test

Comprehensive guide for writing and running Terraform tests

AI Skills
Get
H

hashicorp/terraform-test

Built-in testing framework for Terraform configurations with .tftest.hcl files

AI Skills
Get
H

hashicorp/new-terraform-provider

Scaffold a new Terraform provider project using the Plugin Framework

AI Skills
Get

hashicorp/provider-test-patterns FAQ

What does this skill help with?

Writing Terraform provider acceptance tests with terraform-plugin-testing and the Plugin Framework.

How do I install it?

Run npx skills add https://github.com/hashicorp/agent-skills --skill provider-test-patterns.

What test types are covered?

Basic, update, disappears, validation and regression scenarios, plus import tests, sweepers and ephemeral resources.

Can it help with flaky import tests?

Yes. The page gives debugging a flaky import test with ImportStateVerify failures as an example job.

Who publishes it?

HashiCorp, in its agent-skills repository on GitHub. The page labels it official.

What are the best hashicorp/provider-test-patterns alternatives?

Popular alternatives to hashicorp/provider-test-patterns include provider-test-patterns, run-acceptance-tests and hashicorp/run-acceptance-tests. See all hashicorp/provider-test-patterns alternatives

Developer Stuff

Badges