cdpacctest

package
v0.5.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourcePrefix = "tf-acc-test"
)

Variables

View Source
var (
	AwsExternalProvider = map[string]resource.ExternalProvider{
		"aws": {
			Source:            "hashicorp/aws",
			VersionConstraint: "~> 5.0",
		},
	}
	HttpExternalProvider = map[string]resource.ExternalProvider{
		"http": {
			Source:            "hashicorp/http",
			VersionConstraint: "~> 3.4",
		},
	}
)
View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"cdp": providerserver.NewProtocol6WithError(provider.New("test")()),
}

Functions

func CheckCrn

func CheckCrn(value string) error

CheckCrn Checks whether the value is set and is a properly formatted CRN

func ConcatExternalProviders

func ConcatExternalProviders(providerMaps ...map[string]resource.ExternalProvider) map[string]resource.ExternalProvider

func GetCdpClientForAccTest

func GetCdpClientForAccTest() *cdp.Client

func PreCheck

func PreCheck(t *testing.T)

func RandomShortWithPrefix added in v0.5.9

func RandomShortWithPrefix(name string) string

func TestAccAwsProviderConfig

func TestAccAwsProviderConfig() string

func TestAccCdpProviderConfig

func TestAccCdpProviderConfig() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL