Documentation ¶
Index ¶
- type E2ETestSuite
- func (s *E2ETestSuite) ConvertToPlainString(input string) string
- func (s *E2ETestSuite) DeployXCallMockApp(ctx context.Context, port string) error
- func (s *E2ETestSuite) GetChains(chainOpts ...testconfig.ChainOptionConfiguration) []chains.Chain
- func (s *E2ETestSuite) GetRelayerExecReporter() *testreporter.RelayerExecReporter
- func (s *E2ETestSuite) GetRelayerWallets(relayer ibc.Relayer) (ibc.Wallet, ibc.Wallet, error)
- func (s *E2ETestSuite) SetCfg() error
- func (s *E2ETestSuite) SetupChainsAndRelayer(ctx context.Context) ibc.Relayer
- func (s *E2ETestSuite) SetupRelayer(ctx context.Context, name string) (ibc.Relayer, error)
- func (s *E2ETestSuite) SetupXCall(ctx context.Context) error
- func (s *E2ETestSuite) StartRelayer(relayer ibc.Relayer) error
- func (s *E2ETestSuite) StopRelayer(ctx context.Context, relayer ibc.Relayer) error
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 ¶
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 ¶
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 ¶
StopRelayer stops the given relayer.