Documentation
¶
Overview ¶
Package e2e provides testing infrastructure for end-to-end tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagVars ¶
type FlagVars struct {
NetworkDir string
ReuseNetwork bool
RestartNetwork bool
StopNetwork bool
NetworkShutdownDelay string
}
FlagVars holds test configuration flags
func RegisterFlags ¶
func RegisterFlags() *FlagVars
RegisterFlags registers e2e test flags and returns a FlagVars instance
type TestContext ¶ added in v1.16.56
type TestContext struct {
// contains filtered or unexported fields
}
TestContext holds test context
func (*TestContext) DefaultContext ¶ added in v1.16.56
func (tc *TestContext) DefaultContext() context.Context
DefaultContext returns the default context
type TestEnvironment ¶
type TestEnvironment struct {
// contains filtered or unexported fields
}
TestEnvironment holds test environment state
func NewTestEnvironment ¶
func NewTestEnvironment(tc *TestContext, flagVars *FlagVars, network *tmpnet.Network) *TestEnvironment
NewTestEnvironment creates a new test environment
func (*TestEnvironment) GetNetwork ¶
func (te *TestEnvironment) GetNetwork() *tmpnet.Network
GetNetwork returns the test network
func (*TestEnvironment) Marshal ¶
func (te *TestEnvironment) Marshal() []byte
Marshal serializes the environment
func (*TestEnvironment) Unmarshal ¶ added in v1.16.56
func (te *TestEnvironment) Unmarshal(data []byte) error
Unmarshal deserializes environment bytes
Click to show internal directories.
Click to hide internal directories.