terraform/plugin/plugin_test.go

18 lines
357 B
Go
Raw Normal View History

package plugin
import (
2020-11-18 16:05:54 +01:00
"github.com/hashicorp/terraform/internal/legacy/terraform"
)
func testProviderFixed(p terraform.ResourceProvider) ProviderFunc {
return func() terraform.ResourceProvider {
return p
}
}
func testProvisionerFixed(p terraform.ResourceProvisioner) ProvisionerFunc {
return func() terraform.ResourceProvisioner {
return p
}
}