Documentation
¶
Overview ¶
Package utils provides smaller and independent helper functions which are needed in various places throughout the code base.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAllNodes ¶
RunAllNodes runs all needed nodes for a proper multi-node test setup in background. It also handles shutdown of these nodes when appropriate signals are received.
func TearDownNormalSetup ¶
func TearDownNormalSetup(testEnv *TestEnv)
TearDownNormalSetup takes care of shutting down the normally running nodes by sending shutdown signals and expecting success answers.
Types ¶
type TestEnv ¶
type TestEnv struct {
Config *config.Config
TLSConfig *tls.Config
DownDistr chan struct{}
DownWorker chan struct{}
DownStorage chan struct{}
DoneDistr chan struct{}
DoneWorker chan struct{}
DoneStorage chan struct{}
}
TestEnv carries everything needed for a full grown test of pluto with multiple nodes.
func CreateTestEnv ¶
CreateTestEnv initializes the needed environment for performing various tests against a potentially complete pluto setup.
Click to show internal directories.
Click to hide internal directories.