Versions in this module Expand all Collapse all v1 v1.1.0 Jan 13, 2020 v1.0.0 Jan 11, 2020 Changes in this version + func AcceptanceTest(t TestControl) + func FindTerraform() string + func InstallTerraform(tfVersion string) (string, error) + func LongTest(t TestControl) + func RunningAsPlugin() bool + type Config struct + CurrentPluginExec string + PluginName string + PreviousPluginExec string + SourceDir string + TerraformExec string + func DiscoverConfig(pluginName string, sourceDir string) (*Config, error) + type Helper struct + func AutoInitHelper(pluginName string, sourceDir string) (*Helper, error) + func AutoInitProviderHelper(name string, sourceDir string) *Helper + func InitHelper(config *Config) (*Helper, error) + func (h *Helper) Close() error + func (h *Helper) HasPreviousVersion() bool + func (h *Helper) NewWorkingDir() (*WorkingDir, error) + func (h *Helper) PluginDir() string + func (h *Helper) PreviousPluginDir() string + func (h *Helper) RequireNewWorkingDir(t TestControl) *WorkingDir + func (h *Helper) RequirePreviousVersion(t TestControl) + func (h *Helper) TerraformExecPath() string + type TestControl interface + FailNow func() + Helper func() + Log func(args ...interface{}) + SkipNow func() + type WorkingDir struct + func (wd *WorkingDir) Apply() error + func (wd *WorkingDir) ClearPlan() error + func (wd *WorkingDir) ClearState() error + func (wd *WorkingDir) Close() error + func (wd *WorkingDir) CreatePlan() error + func (wd *WorkingDir) Destroy() error + func (wd *WorkingDir) HasSavedPlan() bool + func (wd *WorkingDir) Import(resource, id string) error + func (wd *WorkingDir) Init() error + func (wd *WorkingDir) InitPrevious() error + func (wd *WorkingDir) Refresh() error + func (wd *WorkingDir) RequireApply(t TestControl) + func (wd *WorkingDir) RequireClearPlan(t TestControl) + func (wd *WorkingDir) RequireClearState(t TestControl) + func (wd *WorkingDir) RequireCreatePlan(t TestControl) + func (wd *WorkingDir) RequireDestroy(t TestControl) + func (wd *WorkingDir) RequireImport(t TestControl, resource, id string) + func (wd *WorkingDir) RequireInit(t TestControl) + func (wd *WorkingDir) RequireInitPrevious(t TestControl) + func (wd *WorkingDir) RequireRefresh(t TestControl) + func (wd *WorkingDir) RequireSavedPlan(t TestControl) *tfjson.Plan + func (wd *WorkingDir) RequireSetConfig(t TestControl, cfg string) + func (wd *WorkingDir) RequireState(t TestControl) *tfjson.State + func (wd *WorkingDir) SavedPlan() (*tfjson.Plan, error) + func (wd *WorkingDir) SetConfig(cfg string) error + func (wd *WorkingDir) State() (*tfjson.State, error)