configtest

package
v1.10.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RootDir the root directory for test
	RootDir = "/tmp/chainlink_test"
	// DefaultPeerID is the peer ID of the default p2p key
	DefaultPeerID              = "12D3KooWPjceQrSwdWXPyLLeABRXmuqt69Rg3sBYbU1Nft9HyQ6X"
	HeadSamplingIntervalInTest = 0 * time.Millisecond
)

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
	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
	KeeperMinimumRequiredConfirmations        null.Int
	KeeperRegistrySyncInterval                *time.Duration
	KeeperRegistrySyncUpkeepQueueSize         null.Int
	LogLevel                                  *config.LogLevel
	LogSQLStatements                          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
}

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) DatabaseTimeout

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

func (*TestGeneralConfig) DatabaseURL

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

func (*TestGeneralConfig) DefaultChainID

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) DefaultMaxHTTPAttempts

func (c *TestGeneralConfig) DefaultMaxHTTPAttempts() uint

func (*TestGeneralConfig) Dev

func (c *TestGeneralConfig) Dev() bool

func (*TestGeneralConfig) EVMDisabled

func (c *TestGeneralConfig) EVMDisabled() bool

func (*TestGeneralConfig) EthereumDisabled

func (c *TestGeneralConfig) EthereumDisabled() bool

func (*TestGeneralConfig) FeatureExternalInitiators

func (c *TestGeneralConfig) FeatureExternalInitiators() bool

func (*TestGeneralConfig) GetAdvisoryLockIDConfiguredOrDefault

func (c *TestGeneralConfig) GetAdvisoryLockIDConfiguredOrDefault() int64

func (*TestGeneralConfig) GetDatabaseDialectConfiguredOrDefault

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

func (*TestGeneralConfig) GlobalBalanceMonitorEnabled

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

func (*TestGeneralConfig) GlobalChainType

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

func (*TestGeneralConfig) GlobalEthTxReaperThreshold

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

func (*TestGeneralConfig) GlobalEthTxResendAfterThreshold

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

func (*TestGeneralConfig) GlobalEvmEIP1559DynamicFees

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

func (*TestGeneralConfig) GlobalEvmFinalityDepth

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

func (*TestGeneralConfig) GlobalEvmGasBumpPercent

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

func (*TestGeneralConfig) GlobalEvmGasBumpTxDepth

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

func (*TestGeneralConfig) GlobalEvmGasBumpWei

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

func (*TestGeneralConfig) GlobalEvmGasLimitDefault

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

func (*TestGeneralConfig) GlobalEvmGasLimitMultiplier

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

func (*TestGeneralConfig) GlobalEvmGasPriceDefault

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

func (*TestGeneralConfig) GlobalEvmGasTipCapDefault

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

func (*TestGeneralConfig) GlobalEvmGasTipCapMinimum

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

func (*TestGeneralConfig) GlobalEvmHeadTrackerHistoryDepth

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

func (*TestGeneralConfig) GlobalEvmHeadTrackerMaxBufferSize

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

func (*TestGeneralConfig) GlobalEvmHeadTrackerSamplingInterval

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

func (*TestGeneralConfig) GlobalEvmLogBackfillBatchSize

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

func (*TestGeneralConfig) GlobalEvmMaxGasPriceWei

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

func (*TestGeneralConfig) GlobalEvmMinGasPriceWei

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

func (*TestGeneralConfig) GlobalEvmNonceAutoSync

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

func (*TestGeneralConfig) GlobalEvmRPCDefaultBatchSize

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

func (*TestGeneralConfig) GlobalFlagsContractAddress

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

func (*TestGeneralConfig) GlobalGasEstimatorMode

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

func (*TestGeneralConfig) GlobalLockRetryInterval

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

func (*TestGeneralConfig) GlobalMinIncomingConfirmations

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

func (*TestGeneralConfig) GlobalMinRequiredOutgoingConfirmations

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

func (*TestGeneralConfig) GlobalMinimumContractPayment

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

func (*TestGeneralConfig) InsecureFastScrypt

func (c *TestGeneralConfig) InsecureFastScrypt() bool

func (*TestGeneralConfig) KeeperMaximumGracePeriod

func (c *TestGeneralConfig) KeeperMaximumGracePeriod() int64

func (*TestGeneralConfig) KeeperMinimumRequiredConfirmations

func (c *TestGeneralConfig) KeeperMinimumRequiredConfirmations() uint64

func (*TestGeneralConfig) KeeperRegistrySyncInterval

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

func (*TestGeneralConfig) KeeperRegistrySyncUpkeepQueueSize

func (c *TestGeneralConfig) KeeperRegistrySyncUpkeepQueueSize() uint32

func (*TestGeneralConfig) LogLevel

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

func (*TestGeneralConfig) LogSQLMigrations

func (c *TestGeneralConfig) LogSQLMigrations() bool

func (*TestGeneralConfig) LogSQLStatements

func (c *TestGeneralConfig) LogSQLStatements() 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

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