acceptance

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, c AccTestCase)

Types

type AccCheck

type AccCheck struct {
	PreExec     func()
	PostExec    func()
	Env         map[string]string
	Args        func() []string
	ShouldRetry ShouldRetryFunc
	Check       func(result *test.ScanResult, stdout string, err error)
}

type AccTestCase

type AccTestCase struct {
	DoNotRunTerraform bool
	TerraformVersion  string
	WorkingDir        string
	Paths             []string
	Args              []string
	OnStart           func()
	OnEnd             func()
	Checks            []AccCheck

	ShouldRefreshBeforeDestroy bool
	// contains filtered or unexported fields
}

type ShouldRetryFunc

type ShouldRetryFunc func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool

func LinearBackoff

func LinearBackoff(limit time.Duration) ShouldRetryFunc

LinearBackoff returns a function that retries using a back-off strategy of retrying 'n' times and doubling the amount of time waited after each one.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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