test

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 10 Imported by: 0

README

The test folder contains two things:

  • common.go - common code shared between the tests to avoid duplication.
  • the source code for mock/spy containers for testing - one for each of config, release and terraform in folders of the same name.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTerraformInitInitialReflectedInput

func CheckTerraformInitInitialReflectedInput(output []byte)

CheckTerraformInitInitialReflectedInput checks the debug output for the terraform init during release.

func CheckTerraformWorkspaceList

func CheckTerraformWorkspaceList(line string)

CheckTerraformWorkspaceList checks the debug output for the terraform list workspace command during workspace selection in deployment.

func CheckTerraformWorkspaceNew

func CheckTerraformWorkspaceNew(line, workspaceName string)

CheckTerraformWorkspaceNew checks the debug output for the terraform workspace new command during workspace selections in deployment.

func CreateDockerClient

func CreateDockerClient() *docker.Client

func CreateVolume

func CreateVolume(dockerClient *docker.Client) *docker.Volume

func GetConfig

func GetConfig(name string) string

func ReadVolume

func ReadVolume(dockerClient *docker.Client, volume *docker.Volume) (map[string]string, error)

func RemoveVolume

func RemoveVolume(dockerClient *docker.Client, volume *docker.Volume)

Types

type ReflectedInput

type ReflectedInput struct {
	Args  []string
	Env   map[string]string
	Input string
	Cwd   string
	File  string
}

ReflectedInput is the message format returned from the fake terraform container that reflects its inputs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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