tests

package
v0.0.0-...-4c0c8b4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Step is an alias for ginko "By" which represents a step in the spec
	Step = ginkgo.By
)

Functions

func CollectSupport

func CollectSupport()

CollectSupport creates a support bundle

func CrashVolDriverAndWait

func CrashVolDriverAndWait(appNodes []node.Node)

CrashVolDriverAndWait crashes volume driver on given app nodes and waits till driver is back up

func DeleteVolumesAndWait

func DeleteVolumesAndWait(ctx *scheduler.Context)

DeleteVolumesAndWait deletes volumes of given context and waits till they are deleted

func InitInstance

func InitInstance()

InitInstance is the ginkgo spec for initializing torpedo

func ParseFlags

func ParseFlags()

ParseFlags parses command line flags

func PerformSystemCheck

func PerformSystemCheck()

PerformSystemCheck check if core files are present on each node

func ScheduleAndValidate

func ScheduleAndValidate(testname string) []*scheduler.Context

ScheduleAndValidate schedules and validates applications

func StartVolDriverAndWait

func StartVolDriverAndWait(appNodes []node.Node)

StartVolDriverAndWait starts volume driver on given app nodes

func StopVolDriverAndWait

func StopVolDriverAndWait(appNodes []node.Node)

StopVolDriverAndWait stops volume driver on given app nodes and waits till driver is down

func TearDownContext

func TearDownContext(ctx *scheduler.Context, opts map[string]bool)

TearDownContext is the ginkgo spec for tearing down a scheduled context

func ValidateAndDestroy

func ValidateAndDestroy(contexts []*scheduler.Context, opts map[string]bool)

ValidateAndDestroy validates application and then destroys them

func ValidateCleanup

func ValidateCleanup()

ValidateCleanup checks that there are no resource leaks after the test run

func ValidateContext

func ValidateContext(ctx *scheduler.Context)

ValidateContext is the ginkgo spec for validating a scheduled context

func ValidateVolumes

func ValidateVolumes(ctx *scheduler.Context)

ValidateVolumes is the ginkgo spec for validating volumes of a context

Types

type Torpedo

type Torpedo struct {
	InstanceID                  string
	S                           scheduler.Driver
	V                           volume.Driver
	N                           node.Driver
	SpecDir                     string
	AppList                     []string
	LogLoc                      string
	ScaleFactor                 int
	StorageDriverUpgradeVersion string
	StorageDriverBaseVersion    string
}

Torpedo is the torpedo testsuite

func Inst

func Inst() *Torpedo

Inst returns the Torpedo instances

Jump to

Keyboard shortcuts

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