Documentation ¶
Index ¶
- Constants
- type E2ETestSuite
- func (s *E2ETestSuite) DeployMockApp(ctx context.Context, port string)
- func (s *E2ETestSuite) GetChains(chainOpts ...testconfig.ChainOptionConfiguration) (chains.Chain, chains.Chain)
- func (s *E2ETestSuite) GetPathName(idx int64) string
- func (s *E2ETestSuite) GetRelayerExecReporter() *testreporter.RelayerExecReporter
- func (s *E2ETestSuite) GetRelayerWallets(relayer ibc.Relayer) (ibc.Wallet, ibc.Wallet, error)
- func (s *E2ETestSuite) SetupChainsAndRelayer(ctx context.Context, channelOpts ...func(*ibc.CreateChannelOptions)) ibc.Relayer
- func (s *E2ETestSuite) SetupXCall(ctx context.Context, portId string)
- func (s *E2ETestSuite) StartRelayer(relayer ibc.Relayer)
- func (s *E2ETestSuite) StopRelayer(ctx context.Context, relayer ibc.Relayer)
- func (s *E2ETestSuite) UpdateClients(ctx context.Context, relayer ibc.Relayer, pathName string)
Constants ¶
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 ¶
func (s *E2ETestSuite) GetChains(chainOpts ...testconfig.ChainOptionConfiguration) (chains.Chain, 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) 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 ¶
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 ¶
UpdateClients updates clients on chainA and chainB