testutil

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPlanChecks = resource.ConfigPlanChecks{
	PostApplyPreRefresh: []plancheck.PlanCheck{
		DebugPlan("PostApplyPreRefresh"),
	},
	PostApplyPostRefresh: []plancheck.PlanCheck{
		DebugPlan("PostApplyPostRefresh"),
	},
}

Functions

func DebugPlan added in v1.25.0

func DebugPlan(stage string) plancheck.PlanCheck

func ExecuteTemplate

func ExecuteTemplate(name, temp string, fields interface{}) string

func GetEnvVarWithFallback

func GetEnvVarWithFallback(t *testing.T, envVars ...string) string

func MapToTestChecks

func MapToTestChecks(fqrn string, fields map[string]interface{}) []resource.TestCheckFunc

func MkNames

func MkNames(name, resource string) (int, string, string)

func RandBool

func RandBool() bool

func RandSelect

func RandSelect(items ...interface{}) interface{}

func RandomInt

func RandomInt() int

Types

type CheckFun

type CheckFun func(id string, request *resty.Request) (*resty.Response, error)

type PlanCheck added in v1.25.0

type PlanCheck struct {
	Stage string
}

func (PlanCheck) CheckPlan added in v1.25.0

Jump to

Keyboard shortcuts

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