Documentation
¶
Index ¶
- Constants
- func ApplyAndAssertError(t *testing.T, moduleVars map[string]any, wantErr bool)
- func ApplyAndAssertOutputs(t *testing.T, moduleVars map[string]any, expectedOutputs map[string]any)
- func ApplyE(t *testing.T, moduleVars map[string]any) (map[string]any, error)
- func AssertProviderConfigExists(t *testing.T, plan *terraform.PlanStruct, name string)
- func AssertWithPlan(t *testing.T, plan *terraform.PlanStruct, expectedModules []string)
- func JobName(t *testing.T) string
- func Plan(t *testing.T, moduleVars map[string]any) *terraform.PlanStruct
- func PlanAndAssert(t *testing.T, moduleVars map[string]any, expectedModules []string)
- func PlanAndAssertError(t *testing.T, moduleVars map[string]any, wantErr bool)
- func PlanE(t *testing.T, moduleVars map[string]any) (*terraform.PlanStruct, error)
- func ToModuleVars(t *testing.T, obj any) map[string]any
Constants ¶
View Source
const ( JobIdVar = "CI_JOB_ID" CommitSHAVar = "CI_COMMIT_SHA" )
Variables ¶
This section is empty.
Functions ¶
func ApplyAndAssertError ¶ added in v0.15.0
func ApplyAndAssertOutputs ¶ added in v0.15.0
func AssertProviderConfigExists ¶
func AssertProviderConfigExists(t *testing.T, plan *terraform.PlanStruct, name string)
func AssertWithPlan ¶
func AssertWithPlan(t *testing.T, plan *terraform.PlanStruct, expectedModules []string)
func JobName ¶
JobName returns a unique name for a test that can be used for terraform resources. It should allow integration tests against the same cloud provider to run in parallel without conflicts.
func PlanAndAssert ¶
func PlanAndAssertError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.