Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAccountParameterUnset(t *testing.T, paramName sdk.AccountParameter) func(*terraform.State) error
- func CheckAccountRolePrivilegesRevoked(t *testing.T) func(*terraform.State) error
- func CheckDatabaseRolePrivilegesRevoked(t *testing.T) func(*terraform.State) error
- func CheckDestroy(t *testing.T, resource resources.Resource) func(*terraform.State) error
- func CheckGrantAccountRoleDestroy(t *testing.T) func(*terraform.State) error
- func CheckGrantDatabaseRoleDestroy(t *testing.T) func(*terraform.State) error
- func CheckResourceTagUnset(t *testing.T) func(*terraform.State) error
- func CheckSharePrivilegesRevoked(t *testing.T) func(*terraform.State) error
- func CheckTagUnset(t *testing.T, tagId sdk.SchemaObjectIdentifier, id sdk.ObjectIdentifier, ...) func(*terraform.State) error
- func CheckUserAuthenticationPolicyAttachmentDestroy(t *testing.T) func(*terraform.State) error
- func CheckUserPasswordPolicyAttachmentDestroy(t *testing.T) func(*terraform.State) error
- func ComposeCheckDestroy(t *testing.T, resources ...resources.Resource) func(*terraform.State) error
- func ConfigurationDirectory(directory string) func(config.TestStepConfigRequest) string
- func ConfigurationSameAsStepN(step int) func(config.TestStepConfigRequest) string
- func DefaultConfig(t *testing.T) *gosnowflake.Config
- func ExternalProviderWithExactVersion(version string) map[string]resource.ExternalProvider
- func SecondaryTestClient() *helpers.TestClient
- func SetV097CompatibleConfigPathEnv(t *testing.T)
- func TestAccCheckGrantApplicationRoleDestroy(s *terraform.State) error
- func TestAccPreCheck(t *testing.T)
- func TestClient() *helpers.TestClient
- func UnsetConfigPathEnv(t *testing.T)
Constants ¶
const AcceptanceTestPrefix = "acc_test_"
Variables ¶
var ( TestDatabaseName = fmt.Sprintf("%sdb_%s", AcceptanceTestPrefix, random.AcceptanceTestsSuffix) TestSchemaName = fmt.Sprintf("%ssc_%s", AcceptanceTestPrefix, random.AcceptanceTestsSuffix) TestWarehouseName = fmt.Sprintf("%swh_%s", AcceptanceTestPrefix, random.AcceptanceTestsSuffix) )
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){ "snowflake": func() (tfprotov6.ProviderServer, error) { return v6Server, nil }, }
var (
TestAccProvider *schema.Provider
)
Functions ¶
func CheckAccountParameterUnset ¶ added in v1.0.0
func CheckAccountRolePrivilegesRevoked ¶ added in v0.89.0
CheckAccountRolePrivilegesRevoked is a custom checks that should be later incorporated into generic CheckDestroy
func CheckDatabaseRolePrivilegesRevoked ¶ added in v0.89.0
CheckDatabaseRolePrivilegesRevoked is a custom checks that should be later incorporated into generic CheckDestroy
func CheckDestroy ¶ added in v0.89.0
func CheckGrantAccountRoleDestroy ¶ added in v0.89.0
CheckGrantAccountRoleDestroy is a custom checks that should be later incorporated into generic CheckDestroy
func CheckGrantDatabaseRoleDestroy ¶ added in v0.89.0
CheckGrantDatabaseRoleDestroy is a custom checks that should be later incorporated into generic CheckDestroy
func CheckResourceTagUnset ¶ added in v1.0.0
CheckResourceTagUnset is a custom check that should be later incorporated into generic CheckDestroy
func CheckSharePrivilegesRevoked ¶ added in v0.92.0
CheckSharePrivilegesRevoked is a custom checks that should be later incorporated into generic CheckDestroy
func CheckTagUnset ¶ added in v1.0.0
func CheckTagUnset(t *testing.T, tagId sdk.SchemaObjectIdentifier, id sdk.ObjectIdentifier, objectType sdk.ObjectType) func(*terraform.State) error
CheckTagUnset is a custom check that should be later incorporated into generic CheckDestroy
func CheckUserAuthenticationPolicyAttachmentDestroy ¶ added in v0.98.0
CheckUserAuthenticationPolicyAttachmentDestroy is a custom checks that should be later incorporated into generic CheckDestroy
func CheckUserPasswordPolicyAttachmentDestroy ¶ added in v0.89.0
CheckUserPasswordPolicyAttachmentDestroy is a custom checks that should be later incorporated into generic CheckDestroy
func ComposeCheckDestroy ¶ added in v0.98.0
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 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 DefaultConfig ¶ added in v0.88.0
func DefaultConfig(t *testing.T) *gosnowflake.Config
func ExternalProviderWithExactVersion ¶ added in v0.98.0
func ExternalProviderWithExactVersion(version string) map[string]resource.ExternalProvider
ExternalProviderWithExactVersion returns a map of external providers with an exact version constraint
func SecondaryTestClient ¶ added in v0.90.0
func SecondaryTestClient() *helpers.TestClient
func SetV097CompatibleConfigPathEnv ¶ added in v0.99.0
SetV097CompatibleConfigPathEnv sets a new config path in a relevant env variable for a file that is compatible with v0.97.
func TestAccCheckGrantApplicationRoleDestroy ¶ added in v0.91.0
func TestAccPreCheck ¶
func TestClient ¶ added in v0.90.0
func TestClient() *helpers.TestClient
func UnsetConfigPathEnv ¶ added in v0.99.0
UnsetConfigPathEnv unsets a config path env
Types ¶
This section is empty.