infrastructure

package
v0.0.0-...-4951e04 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	DeploymentName string
	Hosts          map[string][]string
	VMs            []VM
}

type Infrastructure

type Infrastructure interface {
	Start(string)
	Stop(string)
	GetIPs() map[string][]string
	GetDeployment() Deployment
	IsRunning() bool

	FillDisk(int, string, string, string)
	CleanupDisk(string, string, string)

	SimulatePackageLoss(int, int) string
	SimulatePackageCorruption(int, int) string
	SimulatePackageDuplication(int, int) string
	SimulateNetworkDelay(int, int) string
	AddTrafficControl(string, string, string)
	RemoveTrafficControl(string)

	StartCPULoad(string, int)
	StartMemLoad(string, float64)
	StopStress(string)

	AssertEquals(interface{}, interface{}) bool
	AssertNotEquals(interface{}, interface{}) bool
	AssertTrue(bool) bool
	AssertFalse(bool) bool
	AssertNil(interface{}) bool
	AssertNotNil(interface{}) bool
}

Generic Infrastructure interface used by the actual test repository. This will be initialized at the runtime

type VM

type VM struct {
	ServiceName           string
	ID                    string
	IPs                   []string
	State                 string
	DiskSize              float64
	DiskUsageTotal        float64
	DiskUsagePercentage   float64
	CpuUsage              float64
	MemoryUsagePercentage float64
	MemoryUsageTotal      float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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