test

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TestPluginPathEnvVar = "AZTFEXPORT_PLUGIN_PATH"
View Source
const TestToggleEnvVar = "AZTFEXPORT_E2E"

Variables

This section is empty.

Functions

func BuildCredAndClientOpt

func BuildCredAndClientOpt(t *testing.T) (azcore.TokenCredential, *arm.ClientOptions)

func EnsureTF

func EnsureTF(t *testing.T) string

func Keep

func Keep() bool

func Precheck

func Precheck(t *testing.T)

func ResourceMapping

func ResourceMapping(tpl string) (resmap.ResourceMapping, error)

func Verify

func Verify(t *testing.T, ctx context.Context, aztfexportDir, tfexecPath string, expectResCnt int)

Types

type Data

type Data struct {
	Rd
	SubscriptionId string
}

func NewData

func NewData() Data

type Rd

type Rd struct {
	// contains filtered or unexported fields
}

func NewRd

func NewRd() Rd

Grab from https//github.com/hashicorp/terraform-provider-azurerm

func (Rd) RandomIntOfLength

func (rd Rd) RandomIntOfLength(len int) int

RandomIntOfLength is a random 8 to 18 digit integer which is unique to this test case

func (Rd) RandomRgName

func (rd Rd) RandomRgName() string

func (Rd) RandomStringOfLength

func (rd Rd) RandomStringOfLength(len int) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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