utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

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

func RunAllNodes(testEnv *TestEnv, workerName string)

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

func CreateTestEnv(configFilePath string) (*TestEnv, error)

CreateTestEnv initializes the needed environment for performing various tests against a potentially complete pluto setup.

Jump to

Keyboard shortcuts

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