Categorygithub.com/hashicorp/terraform-plugin-testing

# README

PkgGoDev

terraform-plugin-testing

terraform-plugin-testing is a helper module for testing Terraform providers. Terraform acceptance tests use real Terraform configurations to exercise the code in real plan, apply, refresh, and destroy life cycles. When run from the root of a Terraform Provider codebase, Terraform’s testing framework compiles the current provider in-memory and executes the provided configuration in developer defined steps, creating infrastructure along the way.

Go Compatibility

This project follows the support policy of Go as its support policy. The two latest major releases of Go are supported by the project.

Currently, that means Go 1.21 or later must be used when including this project as a dependency.

Contributing

See .github/CONTRIBUTING.md

License

Mozilla Public License v2.0

# Packages

Package compare contains the value comparer interface, and types implementing the value comparer interface.
Package config implements functionality for supporting native Terraform configuration and variables for testing purposes.
No description provided by the author
Package knownvalue contains the known value interface, and types implementing the known value interface.
Package plancheck contains the plan check interface, request/response structs, and common plan check implementations.
Package statecheck contains the state check interface, request/response structs, and common state check implementations.
No description provided by the author
Package tfjsonpath implements terraform-json path functionality, which defines traversals into Terraform JSON data, for testing purposes.
Package tfversion contains the Terraform version check interface, request/response structs, and common version check implementations.