Documentation ¶
Overview ¶
Package gauntlet enables the framework to interface with the chainlink gauntlet project
Index ¶
- type ExecCommandOptions
- type Gauntlet
- func (g *Gauntlet) AddNetworkConfigVar(k string, v string)
- func (g *Gauntlet) ExecCommand(args []string, options ExecCommandOptions) (string, error)
- func (g *Gauntlet) ExecCommandWithRetries(args []string, options ExecCommandOptions) (string, error)
- func (g *Gauntlet) Flag(flag, value string) string
- func (g *Gauntlet) GenerateRandomNetwork()
- func (g *Gauntlet) SetWorkingDir(workDir string)
- func (g *Gauntlet) WriteNetworkConfigMap(networkDirPath string) error
- func (g *Gauntlet) WriteNetworkConfigVar(networkDirPath string, k string, v string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecCommandOptions ¶
type Gauntlet ¶
type Gauntlet struct { Command string Network string NetworkConfig map[string]string // contains filtered or unexported fields }
Gauntlet contains helpful data to run gauntlet commands
func NewGauntlet ¶
NewGauntlet Sets up a gauntlet struct and checks if the yarn executable exists.
func (*Gauntlet) AddNetworkConfigVar ¶ added in v1.5.5
func (*Gauntlet) ExecCommand ¶
func (g *Gauntlet) ExecCommand(args []string, options ExecCommandOptions) (string, error)
ExecCommand Executes a gauntlet or yarn command with the provided arguments.
It will also check for any errors you specify in the output via the errHandling slice.
func (*Gauntlet) ExecCommandWithRetries ¶
func (g *Gauntlet) ExecCommandWithRetries(args []string, options ExecCommandOptions) (string, error)
ExecCommandWithRetries Some commands are safe to retry and in ci this can be even more so needed.
func (*Gauntlet) GenerateRandomNetwork ¶
func (g *Gauntlet) GenerateRandomNetwork()
GenerateRandomNetwork Creates and sets a random network prepended with test
func (*Gauntlet) SetWorkingDir ¶ added in v1.5.8
func (*Gauntlet) WriteNetworkConfigMap ¶
WriteNetworkConfigMap write a network config file for gauntlet testing.
Click to show internal directories.
Click to hide internal directories.