mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-18 03:54:37 -04:00
terraform-provider: cleanup and improve docs (#2685)
Co-authored-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
This commit is contained in:
parent
9a4e96905f
commit
37580009fe
25 changed files with 262 additions and 592 deletions
|
@ -12,6 +12,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/bazelbuild/rules_go/go/runfiles"
|
||||
"github.com/edgelesssys/constellation/v2/internal/constants"
|
||||
"github.com/hashicorp/terraform-plugin-framework/providerserver"
|
||||
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
|
||||
)
|
||||
|
@ -26,9 +27,17 @@ const (
|
|||
// testAccProtoV6ProviderFactories are used to instantiate a provider during
|
||||
// acceptance testing. The factory function will be invoked for every Terraform
|
||||
// CLI command executed to create a provider server to which the CLI can
|
||||
// reattach. It sets a pseudo version for the provider version.
|
||||
var testAccProtoV6ProviderFactories = testAccProtoV6ProviderFactoriesWithVersion(constants.BinaryVersion().String())
|
||||
|
||||
// testAccProtoV6ProviderFactoriesWithVersion are used to instantiate a provider during
|
||||
// acceptance testing. The factory function will be invoked for every Terraform
|
||||
// CLI command executed to create a provider server to which the CLI can
|
||||
// reattach.
|
||||
var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
|
||||
"constellation": providerserver.NewProtocol6WithError(New("test")()),
|
||||
var testAccProtoV6ProviderFactoriesWithVersion = func(version string) map[string]func() (tfprotov6.ProviderServer, error) {
|
||||
return map[string]func() (tfprotov6.ProviderServer, error){
|
||||
"constellation": providerserver.NewProtocol6WithError(New(version)()),
|
||||
}
|
||||
}
|
||||
|
||||
// bazelSetTerraformBinaryPath sets the path to the Terraform binary for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue