utf

package
v0.0.0-...-b78a0c3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvVarNotFound = errors.New("expected env var not set")
)

Functions

func GetEnvVar

func GetEnvVar(varName string) (string, error)

GetEnvVar gets an environment variable, returning an error if it isn't found.

func Setup

func Setup(t *testing.T, platform interface{})

Setup sets up the environment where the deployment will happen.

func Teardown

func Teardown(t *testing.T, platform interface{})

Teardown the deployment environment

Types

type EC2Platform

type EC2Platform struct {
	InstanceName string
	Region       string
	InstanceType string
	TestFolder   string
	SetupScript  string
}

func NewEC2Platform

func NewEC2Platform(t *testing.T, instanceName string, region string, instanceType string, setupScript string) EC2Platform

func (EC2Platform) RunSSHCommand

func (platform EC2Platform) RunSSHCommand(t *testing.T, command string, asSudo bool) (string, error)

RunSSHCommand runs the given command on the given host via SSH, and return the stdout and stderr as a string.

Directories

Path Synopsis
terratest

Jump to

Keyboard shortcuts

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