gauntlet

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauntlet

type Gauntlet struct {
	Network       string
	NetworkConfig map[string]string
	// contains filtered or unexported fields
}

Gauntlet contains helpful data to run gauntlet commands

func NewGauntlet

func NewGauntlet() (*Gauntlet, error)

NewGauntlet Sets up a gauntlet struct and checks if the yarn executable exists.

func (*Gauntlet) ExecCommand

func (g *Gauntlet) ExecCommand(args, errHandling []string) (string, error)

ExecCommand Executes a gauntlet command with the provided arguements.

It will also check for any errors you specify in the output via the errHandling slice.

func (*Gauntlet) ExecCommandWithRetries

func (g *Gauntlet) ExecCommandWithRetries(args, errHandling []string, retryCount int) (string, error)

ExecCommandWithRetries Some commands are safe to retry and in ci this can be even more so needed.

func (*Gauntlet) Flag

func (g *Gauntlet) Flag(flag, value string) string

Flag returns a string formatted in the expected gauntlet's flag form

func (*Gauntlet) GenerateRandomNetwork

func (g *Gauntlet) GenerateRandomNetwork()

GenerateRandomNetwork Creates and sets a random network prepended with test

func (*Gauntlet) WriteNetworkConfigMap

func (g *Gauntlet) WriteNetworkConfigMap(networkDirPath string) error

WriteNetworkConfigMap write a network config file for gauntlet testing.

Jump to

Keyboard shortcuts

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