Documentation ¶
Index ¶
- Constants
- Variables
- func GetConfigurationNameFromEnv() (string, error)
- func MissingImageInfoAsError(errStr string) error
- func MustCopy[T any](c T) T
- func NoSelectedNetworkInfoAsError(errStr string) error
- type AutomationTestConfig
- type Common
- type CommonTestConfig
- type FunctionsTestConfig
- type KeeperTestConfig
- type Ocr2TestConfig
- type OcrTestConfig
- type Product
- type TestConfig
- func (c *TestConfig) AsBase64() (string, error)
- func (c TestConfig) GetAutomationConfig() *a_config.Config
- func (c TestConfig) GetChainlinkImageConfig() *ctf_config.ChainlinkImageConfig
- func (c TestConfig) GetChainlinkUpgradeImageConfig() *ctf_config.ChainlinkImageConfig
- func (c TestConfig) GetCommonConfig() *Common
- func (c TestConfig) GetConfigurationName() string
- func (c TestConfig) GetFunctionsConfig() *f_config.Config
- func (c *TestConfig) GetGrafanaBaseURL() (string, error)
- func (c *TestConfig) GetGrafanaDashboardURL() (string, error)
- func (c TestConfig) GetKeeperConfig() *keeper_config.Config
- func (c *TestConfig) GetLoggingConfig() *ctf_config.LoggingConfig
- func (c TestConfig) GetNetworkConfig() *ctf_config.NetworkConfig
- func (c TestConfig) GetOCRConfig() *ocr_config.Config
- func (c TestConfig) GetPrivateEthereumNetworkConfig() *ctf_config.EthereumNetworkConfig
- func (c TestConfig) GetPyroscopeConfig() *ctf_config.PyroscopeConfig
- func (c TestConfig) GetSethConfig() *seth.Config
- func (c TestConfig) GetVRFv2Config() *vrfv2_config.Config
- func (c TestConfig) GetVRFv2PlusConfig() *vrfv2plus_config.Config
- func (c TestConfig) MustCopy() any
- func (c *TestConfig) Save() (string, error)
- func (c *TestConfig) Validate() error
- type UpgradeableChainlinkTestConfig
- type VRFv2PlusTestConfig
- type VRFv2TestConfig
Constants ¶
View Source
const ( Base64OverrideEnvVarName = k8s_config.EnvBase64ConfigOverride NoKey = "NO_KEY" )
View Source
const TestTypeEnvVarName = "TEST_TYPE"
Variables ¶
View Source
var TestTypesWithLoki = []string{"Load", "Soak", "Stress", "Spike", "Volume"}
Functions ¶
func MissingImageInfoAsError ¶
MissingImageInfoAsError return a helfpul error message when the no Chainlink image info is found in TOML config. If legacy env vars are found it prints ready to use TOML configuration
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)
func NoSelectedNetworkInfoAsError ¶
NoSelectedNetworkInfoAsError return a helfpul error message when the no selected network info is found in TOML config. If legacy env var is found it prints ready to use TOML configuration.
Types ¶
type AutomationTestConfig ¶
type CommonTestConfig ¶
type CommonTestConfig interface {
GetCommonConfig() *Common
}
type FunctionsTestConfig ¶
type KeeperTestConfig ¶
type KeeperTestConfig interface {
GetKeeperConfig() *keeper_config.Config
}
type Ocr2TestConfig ¶
type Ocr2TestConfig interface {
GetOCR2Config() *ocr2_config.Config
}
type OcrTestConfig ¶
type OcrTestConfig interface {
GetOCRConfig() *ocr_config.Config
}
type Product ¶
type Product string
const ( Automation Product = "automation" Cron Product = "cron" DirectRequest Product = "direct_request" Flux Product = "flux" ForwarderOcr Product = "forwarder_ocr" ForwarderOcr2 Product = "forwarder_ocr2" Functions Product = "functions" Keeper Product = "keeper" LogPoller Product = "log_poller" Node Product = "node" OCR Product = "ocr" OCR2 Product = "ocr2" OCR2VRF Product = "ocr2vrf" RunLog Product = "runlog" VRF Product = "vrf" VRFv2 Product = "vrfv2" VRFv2Plus Product = "vrfv2plus" )
type TestConfig ¶
type TestConfig struct { ctf_config.TestConfig Common *Common `toml:"Common"` Automation *a_config.Config `toml:"Automation"` Functions *f_config.Config `toml:"Functions"` Keeper *keeper_config.Config `toml:"Keeper"` LogPoller *lp_config.Config `toml:"LogPoller"` OCR *ocr_config.Config `toml:"OCR"` OCR2 *ocr2_config.Config `toml:"OCR2"` VRF *vrf_config.Config `toml:"VRF"` VRFv2 *vrfv2_config.Config `toml:"VRFv2"` VRFv2Plus *vrfv2plus_config.Config `toml:"VRFv2Plus"` ConfigurationName string `toml:"-"` }
func (*TestConfig) AsBase64 ¶
func (c *TestConfig) AsBase64() (string, error)
func (TestConfig) GetAutomationConfig ¶
func (c TestConfig) GetAutomationConfig() *a_config.Config
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) GetFunctionsConfig ¶
func (c TestConfig) GetFunctionsConfig() *f_config.Config
func (*TestConfig) GetGrafanaBaseURL ¶
func (c *TestConfig) GetGrafanaBaseURL() (string, error)
Returns Grafana URL from Logging config
func (*TestConfig) GetGrafanaDashboardURL ¶
func (c *TestConfig) GetGrafanaDashboardURL() (string, error)
Returns Grafana Dashboard URL from Logging config
func (TestConfig) GetKeeperConfig ¶
func (c TestConfig) GetKeeperConfig() *keeper_config.Config
func (*TestConfig) GetLoggingConfig ¶
func (c *TestConfig) GetLoggingConfig() *ctf_config.LoggingConfig
func (TestConfig) GetNetworkConfig ¶
func (c TestConfig) GetNetworkConfig() *ctf_config.NetworkConfig
func (TestConfig) GetOCRConfig ¶
func (c TestConfig) GetOCRConfig() *ocr_config.Config
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) GetVRFv2Config ¶
func (c TestConfig) GetVRFv2Config() *vrfv2_config.Config
func (TestConfig) GetVRFv2PlusConfig ¶
func (c TestConfig) GetVRFv2PlusConfig() *vrfv2plus_config.Config
func (TestConfig) MustCopy ¶
func (c TestConfig) MustCopy() any
MustCopy Returns a deep copy of the Test Config or panics on error
func (*TestConfig) Save ¶
func (c *TestConfig) Save() (string, error)
Saves Test Config to a local file
func (*TestConfig) Validate ¶
func (c *TestConfig) Validate() error
type UpgradeableChainlinkTestConfig ¶
type UpgradeableChainlinkTestConfig interface {
GetChainlinkUpgradeImageConfig() *ctf_config.ChainlinkImageConfig
}
type VRFv2PlusTestConfig ¶
type VRFv2PlusTestConfig interface {
GetVRFv2PlusConfig() *vrfv2plus_config.Config
}
type VRFv2TestConfig ¶
type VRFv2TestConfig interface {
GetVRFv2Config() *vrfv2_config.Config
}
Click to show internal directories.
Click to hide internal directories.