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