testenvs

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BusinessCriticalAccount env = "SNOWFLAKE_BUSINESS_CRITICAL_ACCOUNT"

	TestAccountCreate          env = "TEST_SF_TF_TEST_ACCOUNT_CREATE"
	TestFailoverGroups         env = "TEST_SF_TF_TEST_FAILOVER_GROUPS"
	ResourceMonitorNotifyUsers env = "TEST_SF_TF_RESOURCE_MONITOR_NOTIFY_USERS"

	AwsExternalBucketUrl   env = "TEST_SF_TF_AWS_EXTERNAL_BUCKET_URL"
	AwsExternalKeyId       env = "TEST_SF_TF_AWS_EXTERNAL_KEY_ID"
	AwsExternalSecretKey   env = "TEST_SF_TF_AWS_EXTERNAL_SECRET_KEY" // #nosec G101
	AwsExternalRoleArn     env = "TEST_SF_TF_AWS_EXTERNAL_ROLE_ARN"
	AzureExternalBucketUrl env = "TEST_SF_TF_AZURE_EXTERNAL_BUCKET_URL"
	AzureExternalTenantId  env = "TEST_SF_TF_AZURE_EXTERNAL_TENANT_ID"
	AzureExternalSasToken  env = "TEST_SF_TF_AZURE_EXTERNAL_SAS_TOKEN" // #nosec G101
	GcsExternalBuckerUrl   env = "TEST_SF_TF_GCS_EXTERNAL_BUCKET_URL"

	SkipManagedAccountTest  env = "TEST_SF_TF_SKIP_MANAGED_ACCOUNT_TEST"
	SkipSamlIntegrationTest env = "TEST_SF_TF_SKIP_SAML_INTEGRATION_TEST"

	EnableAcceptance         env = resource.EnvTfAcc
	EnableSweep              env = "TEST_SF_TF_ENABLE_SWEEP"
	ConfigureClientOnce      env = "SF_TF_ACC_TEST_CONFIGURE_CLIENT_ONCE"
	TestObjectsSuffix        env = "TEST_SF_TF_TEST_OBJECT_SUFFIX"
	RequireTestObjectsSuffix env = "TEST_SF_TF_REQUIRE_TEST_OBJECT_SUFFIX"
)

Variables

This section is empty.

Functions

func AssertEnvNotSet

func AssertEnvNotSet(t *testing.T, envName string)

func AssertEnvSet

func AssertEnvSet(t *testing.T, envName string)

func GetOrSkipTest

func GetOrSkipTest(t *testing.T, envName Env) string

func SkipTestIfSet added in v0.87.1

func SkipTestIfSet(t *testing.T, envName Env, reason string)

Types

type Env

type Env interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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