testutil

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 10 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")
	Region    = os.Getenv("TF_ACC_REGION")
	// ServerId is the id of a server used for some tests
	ServerId = getenv("TF_ACC_SERVER_ID", "")
	// IaaSImageId is the id of an image used for IaaS acceptance tests.
	// Default image is ubuntu 24.04
	IaaSImageId = getenv("TF_ACC_IMAGE_ID", "59838a89-51b1-4892-b57f-b3caf598ee2f")
	// 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")
	// TestProjectParentUUID 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
	// Default email: acc-test@sa.stackit.cloud
	TestProjectUserEmail = getenv("TF_ACC_TEST_PROJECT_USER_EMAIL", "acc-test@sa.stackit.cloud")
	// TestImageLocalFilePath is the local path to an image file used for image acceptance tests
	TestImageLocalFilePath = getenv("TF_ACC_TEST_IMAGE_LOCAL_FILE_PATH", "default")

	ArgusCustomEndpoint           = os.Getenv("TF_ACC_ARGUS_CUSTOM_ENDPOINT")
	CdnCustomEndpoint             = os.Getenv("TF_ACC_CDN_CUSTOM_ENDPOINT")
	DnsCustomEndpoint             = os.Getenv("TF_ACC_DNS_CUSTOM_ENDPOINT")
	GitCustomEndpoint             = os.Getenv("TF_ACC_GIT_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")
	ModelServingCustomEndpoint    = os.Getenv("TF_ACC_MODELSERVING_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")
	ServerUpdateCustomEndpoint    = os.Getenv("TF_ACC_SERVER_UPDATE_CUSTOM_ENDPOINT")
	ServiceAccountCustomEndpoint  = os.Getenv("TF_ACC_SERVICE_ACCOUNT_CUSTOM_ENDPOINT")
	SKECustomEndpoint             = os.Getenv("TF_ACC_SKE_CUSTOM_ENDPOINT")
)

Functions

func ArgusProviderConfig

func ArgusProviderConfig() string

func AuthorizationProviderConfig added in v0.44.0

func AuthorizationProviderConfig() string

func CdnProviderConfig added in v0.51.0

func CdnProviderConfig() string

func ConvertConfigVariable added in v0.52.0

func ConvertConfigVariable(variable config.Variable) string

func CreateDefaultLocalFile added in v0.43.1

func CreateDefaultLocalFile() os.File

helper for local_file_path no real data is created

func DnsProviderConfig

func DnsProviderConfig() string

func GitProviderConfig added in v0.53.0

func GitProviderConfig() 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 ModelServingProviderConfig added in v0.47.0

func ModelServingProviderConfig() 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

func ServerUpdateProviderConfig added in v0.36.0

func ServerUpdateProviderConfig() string

func ServiceAccountProviderConfig added in v0.45.0

func ServiceAccountProviderConfig() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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