Versions in this module Expand all Collapse all v1 v1.2.0 Oct 18, 2019 Changes in this version + const EnvLogPathMask + const TestEnvVar + const UniqueIDSuffixLength + const UniqueIdPrefix + func AddTestSweepers(name string, s *Sweeper) + func GRPCTestProvider(rp terraform.ResourceProvider) providers.Interface + func LogOutput(t TestT) (logOutput io.Writer, err error) + func ParallelTest(t TestT, c TestCase) + func PrefixedUniqueId(prefix string) string + func Retry(timeout time.Duration, f RetryFunc) error + func Test(t TestT, c TestCase) + func TestMain(m *testing.M) + func UniqueId() string + func UnitTest(t TestT, c TestCase) + type CreateFunc func(*terraform.InstanceState, *terraform.InstanceDiff, interface{}) (*terraform.InstanceState, error) + type DestroyFunc func(*terraform.InstanceState, interface{}) error + type DiffFunc func(*terraform.InstanceState, *terraform.ResourceConfig, interface{}) (*terraform.InstanceDiff, error) + type ImportStateCheckFunc func([]*terraform.InstanceState) error + type ImportStateIdFunc func(*terraform.State) (string, error) + type Map struct + Mapping map[string]Resource + func (m *Map) Apply(info *terraform.InstanceInfo, s *terraform.InstanceState, ...) (*terraform.InstanceState, error) + func (m *Map) Diff(info *terraform.InstanceInfo, s *terraform.InstanceState, ...) (*terraform.InstanceDiff, error) + func (m *Map) Refresh(info *terraform.InstanceInfo, s *terraform.InstanceState, meta interface{}) (*terraform.InstanceState, error) + func (m *Map) Resources() []terraform.ResourceType + func (m *Map) Validate(t string, c *terraform.ResourceConfig) ([]string, []error) + type NotFoundError struct + LastError error + LastRequest interface{} + LastResponse interface{} + Message string + Retries int + func (e *NotFoundError) Error() string + type RefreshFunc func(*terraform.InstanceState, interface{}) (*terraform.InstanceState, error) + type Resource struct + ConfigValidator *config.Validator + Create CreateFunc + Destroy DestroyFunc + Diff DiffFunc + Refresh RefreshFunc + Update UpdateFunc + type RetryError struct + Err error + Retryable bool + func NonRetryableError(err error) *RetryError + func RetryableError(err error) *RetryError + type RetryFunc func() *RetryError + type StateChangeConf struct + ContinuousTargetOccurence int + Delay time.Duration + MinTimeout time.Duration + NotFoundChecks int + Pending []string + PollInterval time.Duration + Refresh StateRefreshFunc + Target []string + Timeout time.Duration + func (conf *StateChangeConf) WaitForState() (interface{}, error) + type StateRefreshFunc func() (result interface{}, state string, err error) + type Sweeper struct + Dependencies []string + F SweeperFunc + Name string + type SweeperFunc func(r string) error + type TestCase struct + CheckDestroy TestCheckFunc + IDRefreshIgnore []string + IDRefreshName string + IsUnitTest bool + PreCheck func() + PreventPostDestroyRefresh bool + ProviderFactories map[string]terraform.ResourceProviderFactory + Providers map[string]terraform.ResourceProvider + Steps []TestStep + type TestCheckFunc func(*terraform.State) error + func ComposeAggregateTestCheckFunc(fs ...TestCheckFunc) TestCheckFunc + func ComposeTestCheckFunc(fs ...TestCheckFunc) TestCheckFunc + func TestCheckModuleNoResourceAttr(mp []string, name string, key string) TestCheckFunc + func TestCheckModuleResourceAttr(mp []string, name string, key string, value string) TestCheckFunc + func TestCheckModuleResourceAttrPair(mpFirst []string, nameFirst string, keyFirst string, mpSecond []string, ...) TestCheckFunc + func TestCheckModuleResourceAttrPtr(mp []string, name string, key string, value *string) TestCheckFunc + func TestCheckModuleResourceAttrSet(mp []string, name string, key string) TestCheckFunc + func TestCheckNoResourceAttr(name, key string) TestCheckFunc + func TestCheckOutput(name, value string) TestCheckFunc + func TestCheckResourceAttr(name, key, value string) TestCheckFunc + func TestCheckResourceAttrPair(nameFirst, keyFirst, nameSecond, keySecond string) TestCheckFunc + func TestCheckResourceAttrPtr(name string, key string, value *string) TestCheckFunc + func TestCheckResourceAttrSet(name, key string) TestCheckFunc + func TestMatchOutput(name string, r *regexp.Regexp) TestCheckFunc + func TestMatchResourceAttr(name, key string, r *regexp.Regexp) TestCheckFunc + func TestModuleMatchResourceAttr(mp []string, name string, key string, r *regexp.Regexp) TestCheckFunc + type TestProvider interface + TestReset func() error + type TestStep struct + Check TestCheckFunc + Config string + Destroy bool + ExpectError *regexp.Regexp + ExpectNonEmptyPlan bool + ImportState bool + ImportStateCheck ImportStateCheckFunc + ImportStateId string + ImportStateIdFunc ImportStateIdFunc + ImportStateIdPrefix string + ImportStateVerify bool + ImportStateVerifyIgnore []string + PlanOnly bool + PreConfig func() + PreventDiskCleanup bool + PreventPostDestroyRefresh bool + ResourceName string + SkipFunc func() (bool, error) + Taint []string + type TestT interface + Error func(args ...interface{}) + Fatal func(args ...interface{}) + Name func() string + Parallel func() + Skip func(args ...interface{}) + type TimeoutError struct + ExpectedState []string + LastError error + LastState string + Timeout time.Duration + func (e *TimeoutError) Error() string + type UnexpectedStateError struct + ExpectedState []string + LastError error + State string + func (e *UnexpectedStateError) Error() string + type UpdateFunc func(*terraform.InstanceState, *terraform.InstanceDiff, interface{}) (*terraform.InstanceState, error)