Versions in this module Expand all Collapse all v1 v1.0.0 Jul 14, 2022 Changes in this version + func ComposeAggregateTestCheckFunc(fs ...resource.TestCheckFunc) pluginsdk.TestCheckFunc + func ComposeTestCheckFunc(fs ...resource.TestCheckFunc) pluginsdk.TestCheckFunc + func Environment() (*azure.Environment, error) + func GetAuthConfig(t *testing.T) *authentication.Config + func PreCheck(t *testing.T) + func RandString(strlen int) string + func RandStringFromCharSet(strlen int, charSet string) string + func RandTimeInt() int + func RequiresImportError(resourceName string) *regexp.Regexp + func RunTestsInSequence(t *testing.T, tests map[string]map[string]func(t *testing.T)) + func TestCheckNoResourceAttr(name, key string) resource.TestCheckFunc + func TestCheckOutput(name, value string) pluginsdk.TestCheckFunc + func TestCheckResourceAttr(name, key, value string) pluginsdk.TestCheckFunc + func TestCheckResourceAttrPair(nameFirst, keyFirst, nameSecond, keySecond string) resource.TestCheckFunc + func TestCheckResourceAttrSet(name, key string) pluginsdk.TestCheckFunc + func TestMatchOutput(name string, r *regexp.Regexp) pluginsdk.TestCheckFunc + func TestMatchResourceAttr(name, key string, r *regexp.Regexp) pluginsdk.TestCheckFunc + type ClientAuthDetails struct + ClientID string + ClientSecret string + type ClientCheckFunc func(ctx context.Context, clients *clients.Client, state *terraform.InstanceState) error + type ClientData struct + Alternate ClientAuthDetails + Default ClientAuthDetails + IsServicePrincipal bool + SubscriptionID string + SubscriptionIDAlt string + TenantID string + type DisappearsStepData struct + Config func(data TestData) string + TestResource types.TestResourceVerifyingRemoved + type InstanceState = terraform.InstanceState + type Regions struct + Primary string + Secondary string + Ternary string + type State = terraform.State + type StateChangeConf = resource.StateChangeConf + type TestCheckFunc = resource.TestCheckFunc + type TestData struct + Environment azure.Environment + EnvironmentName string + Locations Regions + MetadataHost string + RandomInteger int + RandomString string + ResourceName string + ResourceType string + func BuildTestData(t *testing.T, resourceType string, resourceLabel string) TestData + func (td *TestData) RandomIntOfLength(len int) int + func (td *TestData) RandomStringOfLength(len int) string + func (td TestData) ApplyStep(config func(data TestData) string, testResource types.TestResource) resource.TestStep + func (td TestData) CheckWithClient(check ClientCheckFunc) resource.TestCheckFunc + func (td TestData) CheckWithClientForResource(check ClientCheckFunc, resourceName string) resource.TestCheckFunc + func (td TestData) CheckWithClientWithoutResource(check ClientCheckFunc) resource.TestCheckFunc + func (td TestData) Client() ClientData + func (td TestData) DataSourceTest(t *testing.T, steps []TestStep) + func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) + func (td TestData) DisappearsStep(data DisappearsStepData) resource.TestStep + func (td TestData) ImportStep(ignore ...string) resource.TestStep + func (td TestData) ImportStepFor(resourceName string, ignore ...string) resource.TestStep + func (td TestData) RequiresImportErrorStep(configBuilder func(data TestData) string) resource.TestStep + func (td TestData) ResourceSequentialTest(t *testing.T, testResource types.TestResource, steps []TestStep) + func (td TestData) ResourceSequentialTestSkipCheckDestroyed(t *testing.T, steps []TestStep) + func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, steps []TestStep) + func (td TestData) ResourceTestSkipCheckDestroyed(t *testing.T, steps []TestStep) + type TestStep = resource.TestStep