provider_test.go 802 B

12345678910111213141516171819202122
  1. package provider
  2. import (
  3. "testing"
  4. "github.com/hashicorp/terraform-plugin-framework/providerserver"
  5. "github.com/hashicorp/terraform-plugin-go/tfprotov6"
  6. )
  7. // testAccProtoV6ProviderFactories are used to instantiate a provider during
  8. // acceptance testing. The factory function will be invoked for every Terraform
  9. // CLI command executed to create a provider server to which the CLI can
  10. // reattach.
  11. var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
  12. "scaffolding": providerserver.NewProtocol6WithError(New("test")()),
  13. }
  14. func testAccPreCheck(t *testing.T) {
  15. // You can add code here to run prior to any test case execution, for example assertions
  16. // about the appropriate environment variables being set are common to see in a pre-check
  17. // function.
  18. }