testconfig

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestConfigFilePathEnv = "TEST_CONFIG_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Name string `mapstructure:"name"`

	Environment      string             `mapstructure:"environment"`
	ChainConfig      chains.ChainConfig `mapstructure:"chain_config"`
	URL              string             `mapstructure:"url"`
	NID              string             `mapstructure:"nid"`
	KeystoreFile     string             `mapstructure:"keystore_file"`
	KeystorePassword string             `mapstructure:"keystore_password"`
	Contracts        map[string]string  `mapstructure:"contracts"`
	// contains filtered or unexported fields
}

type ChainOptionConfiguration

type ChainOptionConfiguration func(options *ChainOptions)

ChainOptionConfiguration enables arbitrary configuration of ChainOptions.

type ChainOptions

type ChainOptions struct {
	ChainAConfig *Chain
	ChainBConfig *Chain
}

func DefaultChainOptions

func DefaultChainOptions() (*ChainOptions, error)

DefaultChainOptions returns the default configuration for the chains. These options can be configured by passing configuration functions to E2ETestSuite.GetChains.

type DebugConfig

type DebugConfig struct {
	// DumpLogs forces the logs to be collected before removing test containers.
	DumpLogs bool `yaml:"dumpLogs"`
}

type TestConfig

type TestConfig struct {
	// ChainConfigs holds configuration values related to the chains used in the tests.
	ChainConfigs []Chain `mapstructure:"chains"`
	// RelayerConfig holds configuration for the relayer to be used.
	RelayerConfig relayer.Config `mapstructure:"relayer"`
}

func New

func New() (*TestConfig, error)

Jump to

Keyboard shortcuts

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