acceptance

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const AcceptanceTestPrefix = "acc_test_"

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"snowflake": func() (tfprotov6.ProviderServer, error) {
		return v6Server, nil
	},
}
View Source
var (
	TestAccProvider *schema.Provider
)

Functions

func CheckAccountParameterUnset added in v1.0.0

func CheckAccountParameterUnset(t *testing.T, paramName sdk.AccountParameter) func(*terraform.State) error

func CheckAccountRolePrivilegesRevoked added in v0.89.0

func CheckAccountRolePrivilegesRevoked(t *testing.T) func(*terraform.State) error

CheckAccountRolePrivilegesRevoked is a custom checks that should be later incorporated into generic CheckDestroy

func CheckDatabaseRolePrivilegesRevoked added in v0.89.0

func CheckDatabaseRolePrivilegesRevoked(t *testing.T) func(*terraform.State) error

CheckDatabaseRolePrivilegesRevoked is a custom checks that should be later incorporated into generic CheckDestroy

func CheckDestroy added in v0.89.0

func CheckDestroy(t *testing.T, resource resources.Resource) func(*terraform.State) error

func CheckGrantAccountRoleDestroy added in v0.89.0

func CheckGrantAccountRoleDestroy(t *testing.T) func(*terraform.State) error

CheckGrantAccountRoleDestroy is a custom checks that should be later incorporated into generic CheckDestroy

func CheckGrantDatabaseRoleDestroy added in v0.89.0

func CheckGrantDatabaseRoleDestroy(t *testing.T) func(*terraform.State) error

CheckGrantDatabaseRoleDestroy is a custom checks that should be later incorporated into generic CheckDestroy

func CheckResourceTagUnset added in v1.0.0

func CheckResourceTagUnset(t *testing.T) func(*terraform.State) error

CheckResourceTagUnset is a custom check that should be later incorporated into generic CheckDestroy

func CheckSharePrivilegesRevoked added in v0.92.0

func CheckSharePrivilegesRevoked(t *testing.T) func(*terraform.State) error

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

func CheckUserAuthenticationPolicyAttachmentDestroy(t *testing.T) func(*terraform.State) error

CheckUserAuthenticationPolicyAttachmentDestroy is a custom checks that should be later incorporated into generic CheckDestroy

func CheckUserPasswordPolicyAttachmentDestroy added in v0.89.0

func CheckUserPasswordPolicyAttachmentDestroy(t *testing.T) func(*terraform.State) error

CheckUserPasswordPolicyAttachmentDestroy is a custom checks that should be later incorporated into generic CheckDestroy

func ComposeCheckDestroy added in v0.98.0

func ComposeCheckDestroy(t *testing.T, resources ...resources.Resource) func(*terraform.State) error

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

func SetV097CompatibleConfigPathEnv(t *testing.T)

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 TestAccCheckGrantApplicationRoleDestroy(s *terraform.State) error

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

func TestClient added in v0.90.0

func TestClient() *helpers.TestClient

func UnsetConfigPathEnv added in v0.99.0

func UnsetConfigPathEnv(t *testing.T)

UnsetConfigPathEnv unsets a config path env

Types

This section is empty.

Jump to

Keyboard shortcuts

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