e2e

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_VCHAIN_TIMEOUT = 120 * time.Second

Variables

View Source
var NETWORK_KEY_CONFIG = []KeyConfig{
	{
		"a328846cd5b4979d68a8c58a9bdfeee657b34de7",
		"901a1a0bfbe217593062a054e561e708707cb814a123474c25fd567a0fe088f8",
	},
	{
		"d27e2e7398e2582f63d0800330010b3e58952ff6",
		"87a210586f57890ae3642c62ceb58f0f0a54e787891054a5a54c80e1da418253",
	},
	{
		"6e2cb55e4cbe97bf5b1e731d51cc2c285d83cbf9",
		"426308c4d11a6348a62b4fdfb30e2cad70ab039174e2e8ea707895e4c644c4ec",
	},
	{
		"c056dfc0d1fbc7479db11e61d1b0b57612bf7f17",
		"1e404ba4e421cedf58dcc3dddcee656569afc7904e209612f7de93e1ad710300",
	},
}

Functions

func AssertGossipServer added in v1.0.0

func AssertGossipServer(t helpers.TestingT, vc VChainArgument)

func AssertManagementServiceUp added in v1.0.0

func AssertManagementServiceUp(t helpers.TestingT, port int)

func AssertServiceDown added in v1.0.0

func AssertServiceDown(t helpers.TestingT, ctx context.Context, serviceName string)

func AssertServiceLogsExist added in v1.0.0

func AssertServiceLogsExist(t helpers.TestingT, port int, service string)

func AssertServiceStatusExists added in v1.0.0

func AssertServiceStatusExists(t helpers.TestingT, port int, service string)

func AssertServiceUp added in v1.0.0

func AssertServiceUp(t helpers.TestingT, ctx context.Context, serviceName string)

func AssertVchainDown added in v1.0.0

func AssertVchainDown(t helpers.TestingT, port int, vc1 VChainArgument)

func AssertVchainLogsExist added in v1.0.0

func AssertVchainLogsExist(t helpers.TestingT, port int, vc VChainArgument)

func AssertVchainProfilingInfoExist added in v1.11.1

func AssertVchainProfilingInfoExist(t helpers.TestingT, port int, vc VChainArgument)

func AssertVchainStatusExists added in v1.0.0

func AssertVchainStatusExists(t helpers.TestingT, port int, vc VChainArgument)

func AssertVchainUp added in v1.0.0

func AssertVchainUp(t helpers.TestingT, port int, publickKey string, vc1 VChainArgument)

func AssertVolumeExists added in v1.0.0

func AssertVolumeExists(t helpers.TestingT, ctx context.Context, volume string)

func InProcessBoyar added in v1.0.0

func InProcessBoyar(t *testing.T, ctx context.Context, logger log.Logger, flags *config.Flags) govnr.ShutdownWaiter

func SetupConfigServer added in v1.0.0

func SetupConfigServer(t *testing.T, keyPair KeyConfig, configBuilder func(managementUrl string, vchainManagementUrl string) (*string, *string)) (*config.Flags, func())

func SetupDynamicBoyarDepencenciesForNetwork added in v1.0.0

func SetupDynamicBoyarDepencenciesForNetwork(t *testing.T, deps boyarDependencies, vChains <-chan []VChainArgument) (*config.Flags, func())

func SetupDynamicBoyarDependencies added in v1.0.0

func SetupDynamicBoyarDependencies(t *testing.T, keyPair KeyConfig, genesisValidators []string, vChains <-chan []VChainArgument) (*config.Flags, func())

func TempFile added in v1.0.0

func TempFile(t *testing.T, keyPairJson []byte) *os.File

Types

type JsonMap added in v1.0.0

type JsonMap struct {
	// contains filtered or unexported fields
}

func GetVChainMetrics added in v1.0.0

func GetVChainMetrics(t helpers.TestingT, port int, vc VChainArgument) JsonMap

func (*JsonMap) String added in v1.0.0

func (m *JsonMap) String(name string) string

func (*JsonMap) Uint64 added in v1.0.0

func (m *JsonMap) Uint64(name string) uint64

type KeyConfig added in v1.0.0

type KeyConfig struct {
	NodeAddress    string `json:"node-address"`
	NodePrivateKey string `json:"node-private-key,omitempty"` // Very important to omit empty value to produce a valid config
}

type VChainArgument added in v1.0.0

type VChainArgument struct {
	Id        int
	Disabled  bool
	PurgeData bool
	BasePort  int
}

func (VChainArgument) ExternalPort added in v1.0.0

func (vc VChainArgument) ExternalPort() int

Jump to

Keyboard shortcuts

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