acctest

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AccTestBaseNetwork string = `` /* 656-byte string literal not displayed */

Variables

View Source
var (
	OsFlavorName       = os.Getenv("OS_FLAVOR_NAME")
	OsNewFlavorName    = os.Getenv("OS_NEW_FLAVOR_NAME")
	OsImageName        = os.Getenv("OS_IMAGE_NAME")
	OsRegionName       = os.Getenv("OS_REGION_NAME")
	OsProjectID        = os.Getenv("OS_PROJECT_ID")
	OsExtNetName       = os.Getenv("OS_EXT_NET_NAME")
	OsAvailabilityZone = os.Getenv("OS_AVAILABILITY_ZONE")
	OsVolumeType       = os.Getenv("OS_VOLUME_TYPE")
)
View Source
var AccTestProtoV6ProviderFactories map[string]func() (tfprotov6.ProviderServer, error)
View Source
var AccTestProvider *schema.Provider
View Source
var AccTestProviders map[string]func() (*schema.Provider, error)
View Source
var AccTestValues map[string]string = map[string]string{
	"BaseNetwork":      AccTestBaseNetwork,
	"BaseExtNetwork":   AccTestBaseExtNetwork(),
	"BaseImage":        AccTestBaseImage(),
	"BaseFlavor":       AccTestBaseFlavor(),
	"BaseNewFlavor":    AccTestBaseNewFlavor(),
	"AvailabilityZone": OsAvailabilityZone,
	"VolumeType":       OsVolumeType,
	"FlavorName":       OsFlavorName,
	"NewFlavorName":    OsNewFlavorName,
	"ImageName":        OsImageName,
	"ExtNetName":       OsExtNetName,
	"ProjectID":        OsProjectID,
}

Functions

func AccTestBaseExtNetwork

func AccTestBaseExtNetwork() string

func AccTestBaseFlavor

func AccTestBaseFlavor() string

func AccTestBaseImage

func AccTestBaseImage() string

func AccTestBaseNewFlavor

func AccTestBaseNewFlavor() string

func AccTestGetStepsWithMigrationCases added in v0.3.0

func AccTestGetStepsWithMigrationCases(steps []resource.TestStep) (migrationSteps []resource.TestStep)

func AccTestPreCheck

func AccTestPreCheck(t *testing.T)

func AccTestRenderConfig

func AccTestRenderConfig(testConfig string, values ...map[string]string) string

func GenerateNameSuffix added in v0.7.4

func GenerateNameSuffix() string

func GenerateUniqueTestFields added in v0.7.4

func GenerateUniqueTestFields(testName string) map[string]string

func ImportStep added in v0.3.0

func ImportStep(resourceName string) resource.TestStep

Types

This section is empty.

Jump to

Keyboard shortcuts

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