provider_test.go 872 B

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