hashicorp / terraform-provider-random

Utility provider that supports the use of randomness within Terraform configurations.
https://registry.terraform.io/providers/hashicorp/random/latest
Mozilla Public License 2.0
201 stars 114 forks source link

testing: Update acceptance tests to use new `statecheck` package and value comparers #599

Closed austinvalle closed 1 month ago

austinvalle commented 1 month ago

Ref: https://github.com/hashicorp/terraform-plugin-testing/issues/295, https://github.com/hashicorp/terraform-plugin-testing/issues/266

With this refactor, all of the assertions should be equivalent except for a few where I made the test assertions more restrictive/exact. Let me know if I missed anything!