acceptance

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetryFor

func RetryFor(timeout time.Duration, f func(c chan struct{}) error) error

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 func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool
	Check       func(result *test.ScanResult, stdout string, err error)
}

type AccTestCase

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

	ShouldRefreshBeforeDestroy bool
	RetryDestroy               RetryConfig
	// contains filtered or unexported fields
}

type RetryConfig

type RetryConfig struct {
	Attempts uint8
	Delay    time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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