configtest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const RootDir = "/tmp/chainlink_test"

RootDir the root directory for test

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralConfigOverrides

type GeneralConfigOverrides struct {
	AdminCredentialsFile                      null.String
	AdvisoryLockID                            null.Int
	AllowOrigins                              null.String
	BlockBackfillDepth                        null.Int
	BlockBackfillSkip                         null.Bool
	ClientNodeURL                             null.String
	DatabaseTimeout                           *time.Duration
	DatabaseURL                               null.String
	DefaultChainID                            *big.Int
	DefaultHTTPAllowUnrestrictedNetworkAccess null.Bool
	DefaultHTTPTimeout                        *time.Duration
	DefaultMaxHTTPAttempts                    null.Int
	Dev                                       null.Bool
	Dialect                                   dialects.DialectName
	EVMDisabled                               null.Bool
	EthereumDisabled                          null.Bool
	FeatureExternalInitiators                 null.Bool
	FeatureFeedsManager                       null.Bool
	GlobalBalanceMonitorEnabled               null.Bool
	GlobalChainType                           null.String
	GlobalEthTxReaperThreshold                *time.Duration
	GlobalEthTxResendAfterThreshold           *time.Duration
	GlobalEvmEIP1559DynamicFees               null.Bool
	GlobalEvmFinalityDepth                    null.Int
	GlobalEvmGasBumpPercent                   null.Int
	GlobalEvmGasBumpTxDepth                   null.Int
	GlobalEvmGasBumpWei                       *big.Int
	GlobalEvmGasLimitDefault                  null.Int
	GlobalEvmGasLimitMultiplier               null.Float
	GlobalEvmGasPriceDefault                  *big.Int
	GlobalEvmGasTipCapDefault                 *big.Int
	GlobalEvmGasTipCapMinimum                 *big.Int
	GlobalEvmHeadTrackerHistoryDepth          null.Int
	GlobalEvmHeadTrackerMaxBufferSize         null.Int
	GlobalEvmHeadTrackerSamplingInterval      *time.Duration
	GlobalEvmLogBackfillBatchSize             null.Int
	GlobalEvmMaxGasPriceWei                   *big.Int
	GlobalEvmMinGasPriceWei                   *big.Int
	GlobalEvmNonceAutoSync                    null.Bool
	GlobalEvmRPCDefaultBatchSize              null.Int
	GlobalFlagsContractAddress                null.String
	GlobalGasEstimatorMode                    null.String
	GlobalMinIncomingConfirmations            null.Int
	GlobalMinRequiredOutgoingConfirmations    null.Int
	GlobalMinimumContractPayment              *assets.Link
	KeeperMaximumGracePeriod                  null.Int
	KeeperRegistrySyncInterval                *time.Duration
	KeeperRegistrySyncUpkeepQueueSize         null.Int
	KeeperCheckUpkeepGasPriceFeatureEnabled   null.Bool
	LogLevel                                  *config.LogLevel
	DefaultLogLevel                           *config.LogLevel
	LogSQL                                    null.Bool
	LogToDisk                                 null.Bool
	OCRBootstrapCheckInterval                 *time.Duration
	OCRKeyBundleID                            null.String
	OCRObservationGracePeriod                 *time.Duration
	OCRObservationTimeout                     *time.Duration
	OCRTransmitterAddress                     *ethkey.EIP55Address
	P2PBootstrapPeers                         []string
	P2PListenPort                             null.Int
	P2PPeerID                                 p2pkey.PeerID
	P2PPeerIDError                            error
	SecretGenerator                           config.SecretGenerator
	TriggerFallbackDBPollInterval             *time.Duration
	KeySpecific                               map[string]types.ChainCfg
}

func (*GeneralConfigOverrides) SetDefaultHTTPTimeout

func (o *GeneralConfigOverrides) SetDefaultHTTPTimeout(d time.Duration)

func (*GeneralConfigOverrides) SetOCRBootstrapCheckInterval

func (o *GeneralConfigOverrides) SetOCRBootstrapCheckInterval(d time.Duration)

func (*GeneralConfigOverrides) SetOCRObservationGracePeriod

func (o *GeneralConfigOverrides) SetOCRObservationGracePeriod(d time.Duration)

func (*GeneralConfigOverrides) SetOCRObservationTimeout

func (o *GeneralConfigOverrides) SetOCRObservationTimeout(d time.Duration)

type TestGeneralConfig

type TestGeneralConfig struct {
	config.GeneralConfig

	Overrides GeneralConfigOverrides
	// contains filtered or unexported fields
}

TestGeneralConfig defaults to whatever config.NewGeneralConfig() gives but allows overriding certain methods

func NewTestGeneralConfig

func NewTestGeneralConfig(t *testing.T) *TestGeneralConfig

func NewTestGeneralConfigWithOverrides

func NewTestGeneralConfigWithOverrides(t testing.TB, overrides GeneralConfigOverrides) *TestGeneralConfig

func (*TestGeneralConfig) AdminCredentialsFile

func (c *TestGeneralConfig) AdminCredentialsFile() string

func (*TestGeneralConfig) AllowOrigins

func (c *TestGeneralConfig) AllowOrigins() string

func (*TestGeneralConfig) BlockBackfillDepth

func (c *TestGeneralConfig) BlockBackfillDepth() uint64

func (*TestGeneralConfig) BlockBackfillSkip

func (c *TestGeneralConfig) BlockBackfillSkip() bool

func (*TestGeneralConfig) BridgeResponseURL

func (c *TestGeneralConfig) BridgeResponseURL() *url.URL

func (*TestGeneralConfig) ClientNodeURL

func (c *TestGeneralConfig) ClientNodeURL() string

func (*TestGeneralConfig) DatabaseLockingMode added in v1.1.0

func (c *TestGeneralConfig) DatabaseLockingMode() string

There is no need for any database application locking in tests

func (*TestGeneralConfig) DatabaseTimeout

func (c *TestGeneralConfig) DatabaseTimeout() models.Duration

func (*TestGeneralConfig) DatabaseURL

func (c *TestGeneralConfig) DatabaseURL() url.URL

func (*TestGeneralConfig) DefaultChainID added in v1.1.0

func (c *TestGeneralConfig) DefaultChainID() *big.Int

func (*TestGeneralConfig) DefaultHTTPAllowUnrestrictedNetworkAccess

func (c *TestGeneralConfig) DefaultHTTPAllowUnrestrictedNetworkAccess() bool

func (*TestGeneralConfig) DefaultHTTPTimeout

func (c *TestGeneralConfig) DefaultHTTPTimeout() models.Duration

func (*TestGeneralConfig) DefaultLogLevel added in v1.1.0

func (c *TestGeneralConfig) DefaultLogLevel() zapcore.Level

func (*TestGeneralConfig) DefaultMaxHTTPAttempts

func (c *TestGeneralConfig) DefaultMaxHTTPAttempts() uint

func (*TestGeneralConfig) Dev

func (c *TestGeneralConfig) Dev() bool

func (*TestGeneralConfig) EVMDisabled added in v1.1.0

func (c *TestGeneralConfig) EVMDisabled() bool

func (*TestGeneralConfig) EthereumDisabled

func (c *TestGeneralConfig) EthereumDisabled() bool

func (*TestGeneralConfig) FeatureExternalInitiators

func (c *TestGeneralConfig) FeatureExternalInitiators() bool

func (*TestGeneralConfig) FeatureFeedsManager added in v1.1.0

func (c *TestGeneralConfig) FeatureFeedsManager() bool

func (*TestGeneralConfig) GetAdvisoryLockIDConfiguredOrDefault

func (c *TestGeneralConfig) GetAdvisoryLockIDConfiguredOrDefault() int64

func (*TestGeneralConfig) GetDatabaseDialectConfiguredOrDefault

func (c *TestGeneralConfig) GetDatabaseDialectConfiguredOrDefault() dialects.DialectName

func (*TestGeneralConfig) GlobalBalanceMonitorEnabled added in v1.1.0

func (c *TestGeneralConfig) GlobalBalanceMonitorEnabled() (bool, bool)

func (*TestGeneralConfig) GlobalChainType added in v1.1.0

func (c *TestGeneralConfig) GlobalChainType() (string, bool)

func (*TestGeneralConfig) GlobalEthTxReaperThreshold added in v1.1.0

func (c *TestGeneralConfig) GlobalEthTxReaperThreshold() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEthTxResendAfterThreshold added in v1.1.0

func (c *TestGeneralConfig) GlobalEthTxResendAfterThreshold() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEvmEIP1559DynamicFees added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmEIP1559DynamicFees() (bool, bool)

func (*TestGeneralConfig) GlobalEvmFinalityDepth added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmFinalityDepth() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasBumpPercent added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasBumpPercent() (uint16, bool)

func (*TestGeneralConfig) GlobalEvmGasBumpTxDepth added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasBumpTxDepth() (uint16, bool)

func (*TestGeneralConfig) GlobalEvmGasBumpWei added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasBumpWei() (*big.Int, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitDefault added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasLimitDefault() (uint64, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitMultiplier added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasLimitMultiplier() (float32, bool)

func (*TestGeneralConfig) GlobalEvmGasPriceDefault added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasPriceDefault() (*big.Int, bool)

func (*TestGeneralConfig) GlobalEvmGasTipCapDefault added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasTipCapDefault() (*big.Int, bool)

func (*TestGeneralConfig) GlobalEvmGasTipCapMinimum added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasTipCapMinimum() (*big.Int, bool)

func (*TestGeneralConfig) GlobalEvmHeadTrackerHistoryDepth added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmHeadTrackerHistoryDepth() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmHeadTrackerMaxBufferSize added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmHeadTrackerMaxBufferSize() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmHeadTrackerSamplingInterval added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmHeadTrackerSamplingInterval() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEvmLogBackfillBatchSize added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmLogBackfillBatchSize() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmMaxGasPriceWei added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmMaxGasPriceWei() (*big.Int, bool)

func (*TestGeneralConfig) GlobalEvmMinGasPriceWei added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmMinGasPriceWei() (*big.Int, bool)

func (*TestGeneralConfig) GlobalEvmNonceAutoSync added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmNonceAutoSync() (bool, bool)

func (*TestGeneralConfig) GlobalEvmRPCDefaultBatchSize added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmRPCDefaultBatchSize() (uint32, bool)

func (*TestGeneralConfig) GlobalFlagsContractAddress added in v1.1.0

func (c *TestGeneralConfig) GlobalFlagsContractAddress() (string, bool)

func (*TestGeneralConfig) GlobalGasEstimatorMode added in v1.1.0

func (c *TestGeneralConfig) GlobalGasEstimatorMode() (string, bool)

func (*TestGeneralConfig) GlobalLockRetryInterval

func (c *TestGeneralConfig) GlobalLockRetryInterval() models.Duration

func (*TestGeneralConfig) GlobalMinIncomingConfirmations added in v1.1.0

func (c *TestGeneralConfig) GlobalMinIncomingConfirmations() (uint32, bool)

func (*TestGeneralConfig) GlobalMinRequiredOutgoingConfirmations added in v1.1.0

func (c *TestGeneralConfig) GlobalMinRequiredOutgoingConfirmations() (uint64, bool)

func (*TestGeneralConfig) GlobalMinimumContractPayment added in v1.1.0

func (c *TestGeneralConfig) GlobalMinimumContractPayment() (*assets.Link, bool)

func (*TestGeneralConfig) InsecureFastScrypt

func (c *TestGeneralConfig) InsecureFastScrypt() bool

func (*TestGeneralConfig) KeeperCheckUpkeepGasPriceFeatureEnabled added in v1.1.0

func (c *TestGeneralConfig) KeeperCheckUpkeepGasPriceFeatureEnabled() bool

func (*TestGeneralConfig) KeeperMaximumGracePeriod

func (c *TestGeneralConfig) KeeperMaximumGracePeriod() int64

func (*TestGeneralConfig) KeeperRegistrySyncInterval

func (c *TestGeneralConfig) KeeperRegistrySyncInterval() time.Duration

func (*TestGeneralConfig) KeeperRegistrySyncUpkeepQueueSize added in v1.1.0

func (c *TestGeneralConfig) KeeperRegistrySyncUpkeepQueueSize() uint32

func (*TestGeneralConfig) LogLevel

func (c *TestGeneralConfig) LogLevel() zapcore.Level

func (*TestGeneralConfig) LogSQL added in v1.1.0

func (c *TestGeneralConfig) LogSQL() bool

func (*TestGeneralConfig) LogSQLMigrations

func (c *TestGeneralConfig) LogSQLMigrations() bool

func (*TestGeneralConfig) LogToDisk

func (c *TestGeneralConfig) LogToDisk() bool

func (*TestGeneralConfig) MigrateDatabase

func (c *TestGeneralConfig) MigrateDatabase() bool

func (*TestGeneralConfig) OCRBootstrapCheckInterval

func (c *TestGeneralConfig) OCRBootstrapCheckInterval() time.Duration

func (*TestGeneralConfig) OCRKeyBundleID

func (c *TestGeneralConfig) OCRKeyBundleID() (string, error)

func (*TestGeneralConfig) OCRObservationGracePeriod

func (c *TestGeneralConfig) OCRObservationGracePeriod() time.Duration

func (*TestGeneralConfig) OCRObservationTimeout

func (c *TestGeneralConfig) OCRObservationTimeout() time.Duration

func (*TestGeneralConfig) OCRTransmitterAddress

func (c *TestGeneralConfig) OCRTransmitterAddress() (ethkey.EIP55Address, error)

func (*TestGeneralConfig) ORMMaxIdleConns

func (c *TestGeneralConfig) ORMMaxIdleConns() int

func (*TestGeneralConfig) ORMMaxOpenConns

func (c *TestGeneralConfig) ORMMaxOpenConns() int

func (*TestGeneralConfig) P2PBootstrapPeers

func (c *TestGeneralConfig) P2PBootstrapPeers() ([]string, error)

func (*TestGeneralConfig) P2PListenPort

func (c *TestGeneralConfig) P2PListenPort() uint16

func (*TestGeneralConfig) P2PPeerID

func (c *TestGeneralConfig) P2PPeerID() p2pkey.PeerID

func (*TestGeneralConfig) RootDir

func (c *TestGeneralConfig) RootDir() string

func (*TestGeneralConfig) SessionSecret

func (c *TestGeneralConfig) SessionSecret() ([]byte, error)

func (*TestGeneralConfig) SessionTimeout

func (c *TestGeneralConfig) SessionTimeout() models.Duration

func (*TestGeneralConfig) SetDialect added in v1.1.0

func (c *TestGeneralConfig) SetDialect(d dialects.DialectName)

func (*TestGeneralConfig) TriggerFallbackDBPollInterval

func (c *TestGeneralConfig) TriggerFallbackDBPollInterval() time.Duration

Jump to

Keyboard shortcuts

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