Documentation ¶
Index ¶
- Constants
- Variables
- 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 CheckSharePrivilegesRevoked(t *testing.T) func(*terraform.State) error
- func CheckUserPasswordPolicyAttachmentDestroy(t *testing.T) 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 IsGreaterOrEqualTo(greaterOrEqualValue int) resource.CheckResourceAttrWithFunc
- func SecondaryTestClient() *helpers.TestClient
- func TestAccCheckGrantApplicationRoleDestroy(s *terraform.State) error
- func TestAccPreCheck(t *testing.T)
- func TestClient() *helpers.TestClient
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 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 CheckSharePrivilegesRevoked ¶ added in v0.92.0
CheckSharePrivilegesRevoked 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 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 IsGreaterOrEqualTo ¶ added in v0.93.0
func IsGreaterOrEqualTo(greaterOrEqualValue int) resource.CheckResourceAttrWithFunc
func SecondaryTestClient ¶ added in v0.90.0
func SecondaryTestClient() *helpers.TestClient
func TestAccCheckGrantApplicationRoleDestroy ¶ added in v0.91.0
func TestAccPreCheck ¶
func TestClient ¶ added in v0.90.0
func TestClient() *helpers.TestClient
Types ¶
This section is empty.