teste2e

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TestImage is the system image that is used in all tests
	TestImage = getEnv("TEST_IMAGE", "ubuntu-24.04")

	// TestImageID is the system image ID that is used in all tests
	TestImageID = getEnv("TEST_IMAGE_ID", "161547269")

	// TestServerType is the default server type used in all tests
	TestServerType = getEnv("TEST_SERVER_TYPE", "cpx12")

	// TestServerTypeUpgrade is the upgrade server type used in all tests
	TestServerTypeUpgrade = getEnv("TEST_SERVER_TYPE_UPGRADE", "cpx22")

	// TestArchitecture is the default architecture used in all tests, should match the architecture of the TestServerType.
	TestArchitecture = getEnv("TEST_ARCHITECTURE", string(hcloud.ArchitectureX86))

	// TestLoadBalancerType is the default Load Balancer type used in all tests
	TestLoadBalancerType = "lb11"

	// TestStorageBoxType is the default Storage Box type used in all tests
	TestStorageBoxType = getEnv("TEST_STORAGE_BOX_TYPE", "bx11")

	// TestStorageBoxTypeUpgrade is the upgrade Storage Box type used in all tests
	TestStorageBoxTypeUpgrade = getEnv("TEST_STORAGE_BOX_TYPE_UPGRADE", "bx21")

	// TestLocationName is the default location where we execute our tests.
	TestLocationName = getEnv("TEST_LOCATION", "hel1")

	// TestCertificateDomain is the domain used to create managed certificates during
	// tests. Tests using this value should skip if empty.
	//
	// The domain specified here must be available in the account running the tests.
	TestCertificateDomain = getEnv("TEST_CERTIFICATE_DOMAIN", "")
)

Functions

func PreCheck

func PreCheck(t *testing.T) func()

PreCheck checks if all conditions for an acceptance test are met.

Types

This section is empty.

Jump to

Keyboard shortcuts

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