testconfig

package
v0.0.0-...-36ee1f5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 24 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Base64OverrideEnvVarName = k8s_config.EnvBase64ConfigOverride
	NoKey                    = "NO_KEY"
)
View Source
const TestTypeEnvVarName = "TEST_TYPE"

Variables

This section is empty.

Functions

func MustCopy

func MustCopy[T any](c T) T

MustCopy Returns a deep copy of struct passed to it and returns a typed copy (or panics on error)

Types

type Common

type Common struct {
	Network   *string `toml:"network"`
	InsideK8s *bool   `toml:"inside_k8"`
	User      *string `toml:"user"`
	// if rpc requires api key to be passed as an HTTP header
	L2RPCApiKey             *string `toml:"l2_rpc_url_api_key"`
	L2RPCUrl                *string `toml:"l2_rpc_url"`
	PrivateKey              *string `toml:"private_key"`
	Account                 *string `toml:"account"`
	Stateful                *bool   `toml:"stateful_db"`
	InternalDockerRepo      *string `toml:"internal_docker_repo"`
	DevnetImage             *string `toml:"devnet_image"`
	GauntletPlusPlusVersion *string `toml:"gauntlet_plus_plus_version"`
	PostgresVersion         *string `toml:"postgres_version"`
	GauntletPlusPlusURL     string
}

func (*Common) Validate

func (c *Common) Validate() error

type Product

type Product string
const (
	OCR2 Product = "ocr2"
)

type TestConfig

type TestConfig struct {
	ChainlinkImage        *ctf_config.ChainlinkImageConfig `toml:"ChainlinkImage"`
	Logging               *ctf_config.LoggingConfig        `toml:"Logging"`
	ChainlinkUpgradeImage *ctf_config.ChainlinkImageConfig `toml:"ChainlinkUpgradeImage"`
	Network               *ctf_config.NetworkConfig        `toml:"Network"`
	Common                *Common                          `toml:"Common"`
	OCR2                  *ocr2_config.Config              `toml:"OCR2"`
	ConfigurationName     string                           `toml:"-"`

	// getter funcs for passing parameters
	GetChainID, GetFeederURL, GetRPCL2Internal, GetRPCL2InternalAPIKey func() string
}

func GetConfig

func GetConfig(configurationName string, product Product) (TestConfig, error)

func (*TestConfig) AsBase64

func (c *TestConfig) AsBase64() (string, error)

func (TestConfig) GetChainlinkImageConfig

func (c TestConfig) GetChainlinkImageConfig() *ctf_config.ChainlinkImageConfig

func (TestConfig) GetChainlinkUpgradeImageConfig

func (c TestConfig) GetChainlinkUpgradeImageConfig() *ctf_config.ChainlinkImageConfig

func (TestConfig) GetCommonConfig

func (c TestConfig) GetCommonConfig() *Common

func (TestConfig) GetConfigurationName

func (c TestConfig) GetConfigurationName() string

func (*TestConfig) GetLoggingConfig

func (c *TestConfig) GetLoggingConfig() *ctf_config.LoggingConfig

func (TestConfig) GetNetworkConfig

func (c TestConfig) GetNetworkConfig() *ctf_config.NetworkConfig

func (*TestConfig) GetNodeConfig

func (c *TestConfig) GetNodeConfig() *ctf_config.NodeConfig

func (TestConfig) GetNodeConfigTOML

func (c TestConfig) GetNodeConfigTOML() (string, error)

func (*TestConfig) GetPrivateEthereumNetworkConfig

func (c *TestConfig) GetPrivateEthereumNetworkConfig() *ctf_config.EthereumNetworkConfig

func (*TestConfig) GetPyroscopeConfig

func (c *TestConfig) GetPyroscopeConfig() *ctf_config.PyroscopeConfig

func (*TestConfig) GetSethConfig

func (c *TestConfig) GetSethConfig() *seth.Config

func (TestConfig) MustCopy

func (c TestConfig) MustCopy() any

MustCopy Returns a deep copy of the Test Config or panics on error

func (*TestConfig) ReadEnvVars

func (c *TestConfig) ReadEnvVars()

func (*TestConfig) Save

func (c *TestConfig) Save() (string, error)

Saves Test Config to a local file

func (*TestConfig) Validate

func (c *TestConfig) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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