Documentation ¶
Overview ¶
e2e implements the e2e tests.
Index ¶
- Constants
- Variables
- func DescribePChain(text string, body func()) bool
- func DescribeXChain(text string, body func()) bool
- type ClusterType
- type TestEnvironment
- func (te *TestEnvironment) ConfigCluster(logLevel string, networkRunnerGRPCEp string, avalancheGoExecPath string, ...) error
- func (te *TestEnvironment) GetRunnerClient() (cli runner_sdk.Client)
- func (te *TestEnvironment) GetRunnerGRPCEndpoint() (ep string)
- func (te *TestEnvironment) GetTestKeys() ([]*secp256k1.PrivateKey, []ids.ShortID, *secp256k1fx.Keychain)
- func (te *TestEnvironment) GetURIs() []string
- func (te *TestEnvironment) LoadKeys() error
- func (te *TestEnvironment) RestoreInitialState(switchOffNetworkFirst bool) error
- func (te *TestEnvironment) ShutdownCluster() error
- func (te *TestEnvironment) SnapInitialState() error
- func (te *TestEnvironment) StartCluster() error
Constants ¶
View Source
const ( Unknown ClusterType = iota StandAlone PreExisting // Enough for primary.NewWallet to fetch initial UTXOs. DefaultWalletCreationTimeout = 5 * time.Second // Defines default tx confirmation timeout. // Enough for test/custom networks. DefaultConfirmTxTimeout = 20 * time.Second DefaultShutdownTimeout = 2 * time.Minute )
Variables ¶
View Source
var ( Env = &TestEnvironment{ testEnvironmentConfig: &testEnvironmentConfig{ clusterType: Unknown, }, } )
Env is the global struct containing all we need to test
Functions ¶
func DescribePChain ¶ added in v1.8.4
DescribePChain annotates the tests for P-Chain. Can run with any type of cluster (e.g., local, fuji, mainnet).
func DescribeXChain ¶
DescribeXChain annotates the tests for X-Chain. Can run with any type of cluster (e.g., local, fuji, mainnet).
Types ¶
type ClusterType ¶ added in v1.9.0
type ClusterType byte
type TestEnvironment ¶ added in v1.9.9
type TestEnvironment struct {
// contains filtered or unexported fields
}
func (*TestEnvironment) ConfigCluster ¶ added in v1.9.9
func (te *TestEnvironment) ConfigCluster( logLevel string, networkRunnerGRPCEp string, avalancheGoExecPath string, avalancheGoLogLevel string, uris string, testKeysFile string, ) error
should be called only once must be called before StartCluster Note that either networkRunnerGRPCEp or uris must be specified
func (*TestEnvironment) GetRunnerClient ¶ added in v1.9.9
func (te *TestEnvironment) GetRunnerClient() (cli runner_sdk.Client)
func (*TestEnvironment) GetRunnerGRPCEndpoint ¶ added in v1.9.9
func (te *TestEnvironment) GetRunnerGRPCEndpoint() (ep string)
func (*TestEnvironment) GetTestKeys ¶ added in v1.9.9
func (te *TestEnvironment) GetTestKeys() ([]*secp256k1.PrivateKey, []ids.ShortID, *secp256k1fx.Keychain)
func (*TestEnvironment) GetURIs ¶ added in v1.9.9
func (te *TestEnvironment) GetURIs() []string
func (*TestEnvironment) LoadKeys ¶ added in v1.9.9
func (te *TestEnvironment) LoadKeys() error
func (*TestEnvironment) RestoreInitialState ¶ added in v1.9.9
func (te *TestEnvironment) RestoreInitialState(switchOffNetworkFirst bool) error
func (*TestEnvironment) ShutdownCluster ¶ added in v1.9.9
func (te *TestEnvironment) ShutdownCluster() error
func (*TestEnvironment) SnapInitialState ¶ added in v1.9.9
func (te *TestEnvironment) SnapInitialState() error
func (*TestEnvironment) StartCluster ¶ added in v1.9.9
func (te *TestEnvironment) StartCluster() error
Directories ¶
Path | Synopsis |
---|---|
Implements tests for the banff network upgrade.
|
Implements tests for the banff network upgrade. |
Implements ping tests, requires network-runner cluster.
|
Implements ping tests, requires network-runner cluster. |
Implements static handlers tests for avm and platformvm
|
Implements static handlers tests for avm and platformvm |
x
|
|
transfer
Implements X-chain transfer tests.
|
Implements X-chain transfer tests. |
Click to show internal directories.
Click to hide internal directories.