testsacc

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

package testsacc provides the acceptance tests for the provider.

Index

Constants

This section is empty.

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"cloudavenue": providerserver.NewProtocol6WithError(provider.New("test")()),
}

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.

Functions

func AddConstantConfig

func AddConstantConfig(config string) func() testsacc.TFData

AddConstantConfig returns the create configuration from constant.

func ConcatTests deprecated

func ConcatTests(tests ...string) string

Deprecated: Use ContactConfigs instead.

func ContactConfigs

func ContactConfigs(configs ...string) string

ContactConfigs concatenates the given configs into a single string.

func NewResourceConfig

func NewResourceConfig(data testsacc.TestACC) func() resourceConfig

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

You can add code here to run prior to any test case execution, for example assertions about the appropriate environment variables being set are common to see in a pre-check function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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