package
0.5.0
Repository: https://github.com/goplugin/pluginv2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AssertEthTxAttemptCountStays asserts that the number of tx attempts remains at the provided value.
AssertPipelineRunsStays asserts that the number of pipeline runs for a particular job remains at the provided values.
No description provided by the author
No description provided by the author
No description provided by the author
AssertServerResponse is used to match against a client response, will print any errors returned if the request fails.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ClearDBTables deletes all rows from the given tables.
CreateExternalInitiatorViaWeb creates a bridgetype via web using /v2/bridge_types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreateUserWithRole inserts a new user with specified role and associated test DB email into the test DB.
No description provided by the author
No description provided by the author
DynamicFeeTransactionsFromTipCaps returns EIP-1559 transactions with the given TipCaps (FeeCap is arbitrary).
No description provided by the author
No description provided by the author
EmptyMockSubscription return empty MockSubscription.
No description provided by the author
FlagSetApplyFromAction applies the flags from action to the flagSet.
GetLogs drains logs of EVM log representations.
Head given the value convert it into an Head.
JSONFromBytes creates JSON from a given byte array.
JSONFromFixture create models.JSON from file path.
JSONFromString create JSON from given body and arguments.
LegacyTransactionsFromGasPrices returns transactions matching the given gas prices.
No description provided by the author
LogFromFixture create ethtypes.log from file path.
No description provided by the author
No description provided by the author
Mine forces the simulated backend to produce a new block every 2 seconds.
No description provided by the author
MockApplicationEthCalls mocks all calls made by the chainlink application as standard when starting and stopping.
No description provided by the author
No description provided by the author
No description provided by the author
MustCreateBridge creates a bridge Be careful not to specify a name here unless you ABSOLUTELY need to This is because name is a unique index and identical names used across transactional tests will lock/deadlock.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Inserts into eth_receipts but does not update eth_txes or eth_tx_attempts.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MustInsertRandomKey inserts a randomly generated (not cryptographically secure) key for testing By default it is enabled for the fixture chain.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MustRandomUser inserts a new admin user with a random email into the test DB.
MustReadFile loads a file but should never fail.
No description provided by the author
No description provided by the author
NewApplication creates a New TestApplication along with a NewConfig It mocks the keystore with no keys or accounts by default.
NewApplicationEVMDisabled creates a new application with default config but EVM disabled Useful for testing controllers.
NewApplicationWithConfig creates a New TestApplication with specified test config.
NewApplicationWithConfigAndKey creates a new TestApplication with the given testorm it will also provide an unlocked account on the keystore.
NewApplicationWithConfigV2AndKeyOnSimulatedBlockchain is like NewApplicationWithConfigAndKeyOnSimulatedBlockchain but cfg should be v2, and configtest.NewGeneralConfigSimulated used to include the simulated chain (testutils.SimulatedChainID).
NewApplicationWithKey creates a new TestApplication along with a new config It uses the native keystore and will load any keys that are in the database.
No description provided by the author
No description provided by the author
NewBridgeType create new bridge type given info slice.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewEthBroadcaster creates a new txmgr.EthBroadcaster for use in testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewEthMocksWithTransactionsOnBlocksAssertions sets an Eth mock with transactions on blocks.
No description provided by the author
No description provided by the author
No description provided by the author
NewEventWebSocketServer returns a new EventWebSocketServer.
No description provided by the author
NewHTTPMockServer create http test server with passed in parameters.
No description provided by the author
No description provided by the author
NewHTTPMockServerWithRequest creates http test server that makes the request available in the callback.
No description provided by the author
NewKeyStore returns a new, unlocked keystore.
Deprecated: use NewApplicationEVMDisabled https://app.shortcut.com/chainlinklabs/story/33622/remove-legacy-config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: use configtest/v2.NewTestGeneralConfig https://app.shortcut.com/chainlinklabs/story/33622/remove-legacy-config.
No description provided by the author
NewWSServer starts a websocket server which invokes callback for each message received.
No description provided by the author
No description provided by the author
ParseJSONAPIResponse parses the response and returns the JSONAPI resource.
ParseJSONAPIResponseMeta parses the bytes of the root document and returns a map of *json.RawMessage's within the 'meta' key.
ParseJSONAPIResponseMetaCount parses the bytes of the root document and returns the value of the 'count' key from the 'meta' section.
ParseResponseBody will parse the given response into a byte slice.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SimulateIncomingHeads spawns a goroutine which sends a stream of heads and closes the returned channel when finished.
TxReceiptFromFixture create ethtypes.log from file path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WaitForSpecErrorV2 polls until the passed in jobID has count number of job spec errors.
WebURL parses a url into a models.WebURL.

# Constants

Collection of test fixture DB user emails per role.
No description provided by the author
No description provided by the author
No description provided by the author
APIKey of the fixture API user.
APISecret of the fixture API user.
AssertNoActionTimeout shouldn't be too long, or it will slow down tests.
DBPollingInterval can't be too short to avoid DOSing the test database.
DefaultOCR2KeyBundleID is the ID of the fixture ocr2 key bundle.
DefaultOCRKeyBundleID is the ID of the default ocr key bundle.
DefaultPeerID is the peer ID of the default p2p key.
Private key seed of test keys created with `big.NewInt(1)`, representations of value present in `scrub_logs` script.
Password just a password we use everywhere for testing.
SessionSecret is the hardcoded secret solely used for test.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BlockedRunner is a Runner that blocks until its channel is posted to.
Blocks - a helper logic to construct a range of linked heads and an ability to fork and create logs from them.
No description provided by the author
EmptyRunner is an EmptyRunner.
EventWebSocketServer is a web socket server designed specifically for testing.
No description provided by the author
HeadBuffer - stores heads in sequence, with increasing timestamps.
No description provided by the author
InstanceAppFactory is an InstanceAppFactory.
InstantClock an InstantClock.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MockCountingPrompter is a mock counting prompt.
MockCron represents a mock cron.
MockCronEntry a cron schedule and function.
MockHeadTrackable allows you to mock HeadTrackable.
No description provided by the author
No description provided by the author
No description provided by the author
MockSubscription a mock subscription.
NeverSleeper is a struct that never sleeps.
RendererMock a mock renderer.
No description provided by the author
TestApplication holds the test application and test servers.

# Interfaces

EthereumLogIterator is the interface provided by gethwrapper representations of EVM logs.
No description provided by the author

# Type aliases

No description provided by the author