common

package
v1.31.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlternativeProviderAlias           = "opentelekomcloud.alternative"
	AlternativeProviderWithRegionAlias = "opentelekomcloud.region"
)
View Source
const DataSourceSecGroupDefault = `
data "opentelekomcloud_networking_secgroup_v2" "default_secgroup" {
  name = "default"
}
`

DataSourceSecGroupDefault can be referred as `data.opentelekomcloud_networking_secgroup_v2.default_secgroup`

Variables

View Source
var (
	TestAccProviderFactories map[string]func() (*schema.Provider, error)
	TestAccProvider          *schema.Provider

	AlternativeProviderConfig = fmt.Sprintf(`
provider opentelekomcloud {
  alias = "alternative"

  cloud       = "%s"
  tenant_id   = "%s"
  tenant_name = "%s"
}
`, altCloud, altProjectID, altProjectName)
	AlternativeProviderWithRegionConfig string
)
View Source
var DataSourceExtNetwork = fmt.Sprintf(`
data "opentelekomcloud_networking_network_v2" "ext_network" {
  name = "%s"
}
`, env.OsExtNetworkName)

DataSourceExtNetwork can be referred as `data.opentelekomcloud_networking_network_v2.ext_network`

View Source
var DataSourceImage = fmt.Sprintf(`
data "opentelekomcloud_images_image_v2" "latest_image" {
  name        = "%s"
  most_recent = true
}
`, env.OsImageName)

DataSourceImage can be referred as `data.opentelekomcloud_images_image_v2.latest_image`

View Source
var DataSourceKMSKey = fmt.Sprintf(`
data "opentelekomcloud_kms_key_v1" "default_key" {
  key_alias = "%s"
}
`, env.OsKmsName)

DataSourceKMSKey can be referred as `data.opentelekomcloud_kms_key_v1.default_key`

View Source
var DataSourceProject = fmt.Sprintf(`
data "opentelekomcloud_identity_project_v3" "project" {
  name = "%s"
}
`, env.OS_TENANT_NAME)

DataSourceProject can be referred as `data.opentelekomcloud_identity_project_v3.project`

View Source
var DataSourceSubnet = fmt.Sprintf(`
data "opentelekomcloud_vpc_subnet_v1" "shared_subnet"  {
  name = "%s"
}
`, env.OsSubnetName)

DataSourceSubnet can be referred as `data.opentelekomcloud_vpc_subnet_v1.shared_subnet`

Functions

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

func TestAccPreCheckAdminOnly

func TestAccPreCheckAdminOnly(t *testing.T)

func TestAccPreCheckRequiredEnvVars

func TestAccPreCheckRequiredEnvVars(t *testing.T)

func TestAccVBSBackupShareCheck

func TestAccVBSBackupShareCheck(t *testing.T)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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