testsuite

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Owner = "gochain"
	User  = "User"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type E2ETestSuite

type E2ETestSuite struct {
	suite.Suite

	DockerClient *dockerclient.Client
	// contains filtered or unexported fields
}

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

func (*E2ETestSuite) DeployMockApp

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

func (*E2ETestSuite) GetChains

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

func (s *E2ETestSuite) GetPathName(idx int64) string

GetPathName returns the name of a path at a specific index. This can be used in tests when the path name is required.

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

func (s *E2ETestSuite) SetupChainsAndRelayer(ctx context.Context, channelOpts ...func(*ibc.CreateChannelOptions)) 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) SetupXCall

func (s *E2ETestSuite) SetupXCall(ctx context.Context, portId string)

func (*E2ETestSuite) StartRelayer

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

StartRelayer starts the given relayer.

func (*E2ETestSuite) StopRelayer

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

StopRelayer stops the given relayer.

func (*E2ETestSuite) UpdateClients

func (s *E2ETestSuite) UpdateClients(ctx context.Context, relayer ibc.Relayer, pathName string)

UpdateClients updates clients on chainA and chainB

Jump to

Keyboard shortcuts

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