testsuite

package
v0.0.0-...-fe9e2c6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E2ETestSuite

type E2ETestSuite struct {
	suite.Suite

	Relayers        map[string]ibc.Relayer
	RelayersWallets ibc.RelayerMap

	DockerClient *dockerclient.Client

	CurrentPathName string
	// contains filtered or unexported fields
}

E2ETestSuite has methods and functionality which can be shared among all test suites.

func (*E2ETestSuite) ConvertToPlainString

func (s *E2ETestSuite) ConvertToPlainString(input string) string

func (*E2ETestSuite) DeployXCallMockApp

func (s *E2ETestSuite) DeployXCallMockApp(ctx context.Context, port string) error

func (*E2ETestSuite) GetChains

func (s *E2ETestSuite) GetChains(chainOpts ...testconfig.ChainOptionConfiguration) []chains.Chain

GetChains returns two chains that can be used in a test. The pair returned is unique to the current test being run. Note: this function does not create containers.

func (*E2ETestSuite) GetRelayerExecReporter

func (s *E2ETestSuite) GetRelayerExecReporter() *testreporter.RelayerExecReporter

GetRelayerExecReporter returns a testreporter.RelayerExecReporter instances using the current test's testing.T.

func (*E2ETestSuite) GetRelayerWallets

func (s *E2ETestSuite) GetRelayerWallets(relayer ibc.Relayer) (ibc.Wallet, ibc.Wallet, error)

GetRelayerWallets returns the relayer wallets associated with the chains.

func (*E2ETestSuite) SetCfg

func (s *E2ETestSuite) SetCfg() error

func (*E2ETestSuite) SetupChainsAndRelayer

func (s *E2ETestSuite) SetupChainsAndRelayer(ctx context.Context) ibc.Relayer

SetupChainsAndRelayer create two chains, a relayer, establishes a connection and creates a channel using the given channel options. The relayer returned by this function has not yet started. It should be started with E2ETestSuite.StartRelayer if needed. This should be called at the start of every test, unless fine grained control is required.

func (*E2ETestSuite) SetupRelayer

func (s *E2ETestSuite) SetupRelayer(ctx context.Context, name string) (ibc.Relayer, error)

SetupRelayer sets up the relayer, creates interchain networks, builds chains, and starts the relayer. It returns a Relayer interface and an error if any.

func (*E2ETestSuite) SetupXCall

func (s *E2ETestSuite) SetupXCall(ctx context.Context) error

func (*E2ETestSuite) StartRelayer

func (s *E2ETestSuite) StartRelayer(relayer ibc.Relayer) error

StartRelayer starts the given relayer.

func (*E2ETestSuite) StopRelayer

func (s *E2ETestSuite) StopRelayer(ctx context.Context, relayer ibc.Relayer) error

StopRelayer stops the given relayer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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