e2e

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(sourceFile string, destinationFile string) error

CopyFile copies a file from a sourceFile to a destinationFile setting permissions to 0755

func SetupExistingCLI

func SetupExistingCLI() (string, func(), error)

SetupExistingCLI copies the existing CLI in a temporary directory so that the new CLI can be configured to use it

Types

type E2eCLI

type E2eCLI struct {
	BinDir    string
	ConfigDir string
	Test      *testing.T
}

E2eCLI is used to wrap the CLI for end to end testing nolint stutter

func NewE2eCLI

func NewE2eCLI(t *testing.T, binDir string) *E2eCLI

NewE2eCLI returns a configured TestE2eCLI

func (*E2eCLI) DesktopSocket

func (c *E2eCLI) DesktopSocket() string

DesktopSocket get the path where test metrics will be sent

func (*E2eCLI) NewCmd

func (c *E2eCLI) NewCmd(command string, args ...string) icmd.Cmd

NewCmd creates a cmd object configured with the test environment set

func (*E2eCLI) NewComposeCmd

func (c *E2eCLI) NewComposeCmd(args ...string) icmd.Cmd

NewComposeCmd creates a docker-compose cmd without running it

func (*E2eCLI) PathEnvVar

func (c *E2eCLI) PathEnvVar() string

PathEnvVar returns path (os sensitive) for running test

func (*E2eCLI) RunCmd

func (c *E2eCLI) RunCmd(args ...string) *icmd.Result

RunCmd runs a command, expects no error and returns a result

func (*E2eCLI) RunNewComposeCmd

func (c *E2eCLI) RunNewComposeCmd(args ...string) *icmd.Result

RunNewComposeCmd runs a docker-compose cmd

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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