tester

package
v0.0.5-0...-3bd4ab3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: CC0-1.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config) error

Run enumerates over each subfolder in the provided directory stubs out a provider.tf with a fully populated aws provider with the provided services or by default it will add all known services then executes the first file ending in _test.go against moto_server on the first available port

Types

type Config

type Config struct {
	// Dir is the directory that houses all of the test directories
	Dir string

	// Env is a map of environment variables that need to be provided
	// to each executable by default AWS_REGION, AWS_ACCESS_KEY_ID, and
	// AWS_SECRET_ACCESS_KEY are provided with dummy values (and us-east-1)
	Env map[string]string

	// Services is a list of Terraform AWS Provider custom endpoints
	// https://www.terraform.io/docs/providers/aws/guides/custom-service-endpoints.html
	// By default all custom endpoints are statically provided but this
	// provides an option for explicitly listing them
	Services []string

	// JobsPerCPU is the number of jobs that will be executed in parallel
	// per CPU. If it is not set, it will default to 1
	JobsPerCPU int
	// contains filtered or unexported fields
}

Config is used to configure how Tester is executed

Jump to

Keyboard shortcuts

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