setup

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfigurations

func BuildConfigurations(configDir string, serverHosts []string, serverFrontendIP string, numClients int, mysqlCredentials MysqlCredentials) error

BuildConfigurations builds Fleetspeak configuration files for provided servers and number of clients that are supposed to be started on different machines

func ConfigureAndStart

func ConfigureAndStart(t *testing.T, mysqlCredentials MysqlCredentials, frontendAddress, msAddress string, numServers, numClients int) (clientIDs []string)

ConfigureAndStart configures and starts fleetspeak servers, clients, their services and FRR master server. These processes are automatically shut down when the test is done.

func WaitForNewClientIDs

func WaitForNewClientIDs(adminAddress string, startTime time.Time, numClients int) ([]string, error)

WaitForNewClientIDs waits and returns IDs of numClients clients connected to adminAddress after startTime

Types

type MysqlCredentials

type MysqlCredentials struct {
	Host     string
	Username string
	Password string
	Database string
}

MysqlCredentials contains username, password and database

Jump to

Keyboard shortcuts

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