acceptance

package
v0.84.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestDatabaseName  = "terraform_test_database"
	TestSchemaName    = "terraform_test_schema"
	TestWarehouseName = "terraform_test_warehouse"
)

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"snowflake": func() (tfprotov6.ProviderServer, error) {
		return tf5to6server.UpgradeServer(
			context.Background(),
			TestAccProvider.GRPCProvider,
		)
	},
}
View Source
var TestAccProvider *schema.Provider

Functions

func ConfigurationDirectory added in v0.77.0

func ConfigurationDirectory(directory string) func(config.TestStepConfigRequest) string

ConfigurationDirectory should be used to obtain configuration if the same can be shared between multiple tests to avoid duplication of configuration and var files. Based on config.TestNameDirectory. Similar to config.StaticDirectory but prefixed provided directory with `testdata`.

func ConfigurationInnerDirectory added in v0.83.0

func ConfigurationInnerDirectory(innerDirectory string) func(config.TestStepConfigRequest) string

ConfigurationInnerDirectory is similar to ConfigurationSameAsStepN, but instead of index-based directories, you can choose a particular one by name.

func ConfigurationSameAsStepN added in v0.76.0

func ConfigurationSameAsStepN(step int) func(config.TestStepConfigRequest) string

ConfigurationSameAsStepN should be used to obtain configuration for one of the previous steps to avoid duplication of configuration and var files. Based on config.TestStepDirectory.

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

func TestAccProviders

func TestAccProviders() map[string]*schema.Provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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