testutil

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TestAccProtoV6ProviderFactories is used to instantiate a provider during
	// acceptance testing. The factory function will be invoked for every Terraform
	// CLI command executed to create a provider server to which the CLI can
	// reattach.
	TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
		"stackit": providerserver.NewProtocol6WithError(stackit.New("test-version")()),
	}

	// OrganizationId is the id of organization used for tests
	OrganizationId = os.Getenv("TF_ACC_ORGANIZATION_ID")
	// ProjectId is the id of project used for tests
	ProjectId = os.Getenv("TF_ACC_PROJECT_ID")
	// ServerId is the id of a server used for some tests
	ServerId = getenv("TF_ACC_SERVER_ID", "")
	// TestProjectParentContainerID is the container id of the parent resource under which projects are created as part of the resource-manager acceptance tests
	TestProjectParentContainerID = os.Getenv("TF_ACC_TEST_PROJECT_PARENT_CONTAINER_ID")
	// TestProjectParentContainerID is the uuid of the parent resource under which projects are created as part of the resource-manager acceptance tests
	TestProjectParentUUID = os.Getenv("TF_ACC_TEST_PROJECT_PARENT_UUID")
	// TestProjectServiceAccountEmail is the e-mail of a service account with admin permissions on the organization under which projects are created as part of the resource-manager acceptance tests
	TestProjectServiceAccountEmail = os.Getenv("TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_EMAIL")
	// TestProjectUserEmail is the e-mail of a user for the project created as part of the resource-manager acceptance tests
	TestProjectUserEmail = os.Getenv("TF_ACC_TEST_PROJECT_USER_EMAIL")

	ArgusCustomEndpoint           = os.Getenv("TF_ACC_ARGUS_CUSTOM_ENDPOINT")
	DnsCustomEndpoint             = os.Getenv("TF_ACC_DNS_CUSTOM_ENDPOINT")
	IaaSCustomEndpoint            = os.Getenv("TF_ACC_IAAS_CUSTOM_ENDPOINT")
	LoadBalancerCustomEndpoint    = os.Getenv("TF_ACC_LOADBALANCER_CUSTOM_ENDPOINT")
	LogMeCustomEndpoint           = os.Getenv("TF_ACC_LOGME_CUSTOM_ENDPOINT")
	MariaDBCustomEndpoint         = os.Getenv("TF_ACC_MARIADB_CUSTOM_ENDPOINT")
	AuthorizationCustomEndpoint   = os.Getenv("TF_ACC_authorization_custom_endpoint")
	MongoDBFlexCustomEndpoint     = os.Getenv("TF_ACC_MONGODBFLEX_CUSTOM_ENDPOINT")
	OpenSearchCustomEndpoint      = os.Getenv("TF_ACC_OPENSEARCH_CUSTOM_ENDPOINT")
	ObservabilityCustomEndpoint   = os.Getenv("TF_ACC_OBSERVABILITY_CUSTOM_ENDPOINT")
	ObjectStorageCustomEndpoint   = os.Getenv("TF_ACC_OBJECTSTORAGE_CUSTOM_ENDPOINT")
	PostgresFlexCustomEndpoint    = os.Getenv("TF_ACC_POSTGRESFLEX_CUSTOM_ENDPOINT")
	RabbitMQCustomEndpoint        = os.Getenv("TF_ACC_RABBITMQ_CUSTOM_ENDPOINT")
	RedisCustomEndpoint           = os.Getenv("TF_ACC_REDIS_CUSTOM_ENDPOINT")
	ResourceManagerCustomEndpoint = os.Getenv("TF_ACC_RESOURCEMANAGER_CUSTOM_ENDPOINT")
	SecretsManagerCustomEndpoint  = os.Getenv("TF_ACC_SECRETSMANAGER_CUSTOM_ENDPOINT")
	SQLServerFlexCustomEndpoint   = os.Getenv("TF_ACC_SQLSERVERFLEX_CUSTOM_ENDPOINT")
	ServerBackupCustomEndpoint    = os.Getenv("TF_ACC_SERVER_BACKUP_CUSTOM_ENDPOINT")
	SKECustomEndpoint             = os.Getenv("TF_ACC_SKE_CUSTOM_ENDPOINT")

	// OpenStack user domain name
	OSUserDomainName = os.Getenv("TF_ACC_OS_USER_DOMAIN_NAME")
	// OpenStack user name
	OSUserName = os.Getenv("TF_ACC_OS_USER_NAME")
	// OpenStack password
	OSPassword = os.Getenv("TF_ACC_OS_PASSWORD")
)

Functions

func ArgusProviderConfig

func ArgusProviderConfig() string

func DnsProviderConfig

func DnsProviderConfig() string

func IaaSProviderConfig added in v0.18.0

func IaaSProviderConfig() string

func LoadBalancerProviderConfig added in v0.6.2

func LoadBalancerProviderConfig() string

func LogMeProviderConfig

func LogMeProviderConfig() string

func MariaDBProviderConfig

func MariaDBProviderConfig() string

func MongoDBFlexProviderConfig added in v0.6.0

func MongoDBFlexProviderConfig() string

func ObjectStorageProviderConfig added in v0.4.0

func ObjectStorageProviderConfig() string

func ObservabilityProviderConfig added in v0.30.0

func ObservabilityProviderConfig() string

func OpenSearchProviderConfig

func OpenSearchProviderConfig() string

func PostgresFlexProviderConfig

func PostgresFlexProviderConfig() string

func RabbitMQProviderConfig

func RabbitMQProviderConfig() string

func RedisProviderConfig

func RedisProviderConfig() string

func ResourceManagerProviderConfig

func ResourceManagerProviderConfig() string

func ResourceNameWithDateTime

func ResourceNameWithDateTime(name string) string

func SKEProviderConfig

func SKEProviderConfig() string

func SQLServerFlexProviderConfig added in v0.19.0

func SQLServerFlexProviderConfig() string

func SecretsManagerProviderConfig added in v0.6.0

func SecretsManagerProviderConfig() string

func ServerBackupProviderConfig added in v0.21.0

func ServerBackupProviderConfig() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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