suite

package
v0.1.1-experimental.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ether   = params.Ether
	OneGwei = uint64(params.GWei) // 1 Gwei = 1e9 wei
	TenGwei = 10 * OneGwei        // 10 Gwei = 1e10 wei
)

Ether represents the number of wei in one ether, used for Ethereum transactions.

View Source
const (
	DefaultE2ETestTimeout = 60 * 5 * time.Second // timeout for E2E tests
)

DefaultE2ETestTimeout defines the default timeout duration for end-to-end tests. This is used to specify how long to wait for a test before considering it failed.

View Source
const (
	EtherTransferGasLimit uint64 = 21000 // Standard gas limit for ether transfer
)

EtherTransferGasLimit specifies the gas limit for a standard Ethereum transfer. This is the amount of gas required to perform a basic ether transfer.

Variables

View Source
var ErrUnexpectedBalance = errors.New("unexpected balance")

ErrUnexpectedBalance is returned when the balance is unexpected.

View Source
var Run = suite.Run

Run is an alias for suite.Run to help with importing in other packages.

Functions

This section is empty.

Types

type KurtosisE2ESuite

type KurtosisE2ESuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

KurtosisE2ESuite.

func (*KurtosisE2ESuite) CheckForSuccessfulTx

func (s *KurtosisE2ESuite) CheckForSuccessfulTx(
	tx common.Hash,
) bool

CheckForSuccessfulTx returns true if the transaction was successful.

func (*KurtosisE2ESuite) Config

func (s *KurtosisE2ESuite) Config() *config.E2ETestConfig

Config returns the E2ETestConfig associated with the KurtosisE2ESuite.

func (*KurtosisE2ESuite) ConsensusClients

func (s *KurtosisE2ESuite) ConsensusClients() map[string]*types.ConsensusClient

ConsensusClients returns the consensus clients associated with the KurtosisE2ESuite.

func (*KurtosisE2ESuite) Ctx

func (s *KurtosisE2ESuite) Ctx() context.Context

Ctx returns the context associated with the KurtosisE2ESuite. This context is used throughout the suite to control the flow of operations, including timeouts and cancellations.

func (*KurtosisE2ESuite) Enclave

Enclave returns the enclave running the beacon-kit network.

func (*KurtosisE2ESuite) ExecutionClients

func (s *KurtosisE2ESuite) ExecutionClients() map[string]*types.ExecutionClient

ExecutionClients returns the execution clients associated with the KurtosisE2ESuite.

func (*KurtosisE2ESuite) FundAccounts

func (s *KurtosisE2ESuite) FundAccounts()

FundAccounts funds the accounts for the test suite.

func (*KurtosisE2ESuite) GenesisAccount

func (s *KurtosisE2ESuite) GenesisAccount() *types.EthAccount

GenesisAccount returns the genesis account for the test suite.

func (*KurtosisE2ESuite) JSONRPCBalancer

func (s *KurtosisE2ESuite) JSONRPCBalancer() *types.LoadBalancer

JSONRPCBalancer returns the JSON-RPC balancer for the test suite.

func (*KurtosisE2ESuite) KurtosisCtx

KurtosisCtx returns the KurtosisContext associated with the KurtosisE2ESuite. The KurtosisContext is a critical component that facilitates interaction with the Kurtosis testnet, including creating and managing enclaves.

func (*KurtosisE2ESuite) Logger

func (s *KurtosisE2ESuite) Logger() log.Logger

Logger returns the logger for the test suite.

func (*KurtosisE2ESuite) SetupConsensusClients

func (s *KurtosisE2ESuite) SetupConsensusClients() error

func (*KurtosisE2ESuite) SetupExecutionClients

func (s *KurtosisE2ESuite) SetupExecutionClients() error

SetupExecutionClients sets up the execution clients for the test suite.

func (*KurtosisE2ESuite) SetupJSONRPCBalancer

func (s *KurtosisE2ESuite) SetupJSONRPCBalancer() error

SetupNGINXBalancer sets up the NGINX balancer for the test suite.

func (*KurtosisE2ESuite) SetupSuite

func (s *KurtosisE2ESuite) SetupSuite()

SetupSuite executes before the test suite begins execution.

func (*KurtosisE2ESuite) SetupSuiteWithOptions

func (s *KurtosisE2ESuite) SetupSuiteWithOptions(opts ...Option)

Option is a function that sets a field on the KurtosisE2ESuite.

func (*KurtosisE2ESuite) TearDownSuite

func (s *KurtosisE2ESuite) TearDownSuite()

TearDownSuite cleans up resources after all tests have been executed. this function executes after all tests executed.

func (*KurtosisE2ESuite) TestAccounts

func (s *KurtosisE2ESuite) TestAccounts() []*types.EthAccount

TestAccounts returns the test accounts for the test suite.

func (*KurtosisE2ESuite) WaitForFinalizedBlockNumber

func (s *KurtosisE2ESuite) WaitForFinalizedBlockNumber(
	target uint64,
) error

WaitForFinalizedBlockNumber waits for the finalized block number to reach the target block number across all execution clients.

type Option

type Option func(*KurtosisE2ESuite) error

Type Option is a function that sets a field on the KurtosisE2ESuite.

func WithConfig

func WithConfig(cfg *config.E2ETestConfig) Option

WithConfig sets the E2ETestConfig for the test suite.

func WithContext

func WithContext(ctx context.Context) Option

WithContext sets the context for the test suite.

func WithLogger

func WithLogger(logger log.Logger) Option

WithLogger sets the logger for the test suite.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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