Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigurationDirectory(directory string) func(config.TestStepConfigRequest) string
- func ConfigurationInnerDirectory(innerDirectory string) func(config.TestStepConfigRequest) string
- func ConfigurationSameAsStepN(step int) func(config.TestStepConfigRequest) string
- func TestAccPreCheck(t *testing.T)
- func TestAccProviders() map[string]*schema.Provider
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 TestAccProviders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.