tests

package
v0.0.1-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

README

= Integration tests =

Integration tests require a running Kubevirt cluster. Once you have a running Kubevirt cluster, you can use the -master and the -kubeconfig flags to point the tests to the cluster.

== Run them on Vagrant ==

The vagrant environment has an unprotected haproxy in front of the apiserver, so only -master needs to be set to run the tests.

cd tests # from the git repo root folder
go test -master=http://192.168.200.2:8184

There is a helper script to run this:

# from the git repo root folder
cluster/run_tests.sh

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReadyNodes

func GetReadyNodes() []kubev1.Node

func MustCleanup

func MustCleanup()

func NewMigrationForVm

func NewMigrationForVm(vm *v1.VM) *v1.Migration

func NewRandomVM

func NewRandomVM() *v1.VM

func NewRandomVMWithDirectLun

func NewRandomVMWithDirectLun(lun int) *v1.VM

func NewRandomVMWithPVC

func NewRandomVMWithPVC(claimName string) *v1.VM

func NewRandomVMWithSerialConsole

func NewRandomVMWithSerialConsole() *v1.VM

func NewRandomVMWithSpice

func NewRandomVMWithSpice() *v1.VM

func PanicOnError

func PanicOnError(err error)

func WaitForSuccessfulVMStart

func WaitForSuccessfulVMStart(vm runtime.Object)

Block until the specified VM started

Types

type EventType

type EventType string
const (
	NormalEvent  EventType = "Normal"
	WarningEvent EventType = "Warning"
)

type ObjectEventWatcher

type ObjectEventWatcher struct {
	// contains filtered or unexported fields
}

func NewObjectEventWatcher

func NewObjectEventWatcher(object runtime.Object) *ObjectEventWatcher

func (*ObjectEventWatcher) FailOnWarnings

func (w *ObjectEventWatcher) FailOnWarnings() *ObjectEventWatcher

func (*ObjectEventWatcher) Timeout

func (w *ObjectEventWatcher) Timeout(duration time.Duration) *ObjectEventWatcher

func (*ObjectEventWatcher) WaitFor

func (w *ObjectEventWatcher) WaitFor(eventType EventType, reason interface{}) (e *kubev1.Event)

func (*ObjectEventWatcher) Watch

func (w *ObjectEventWatcher) Watch(processFunc ProcessFunc)

type ProcessFunc

type ProcessFunc func(event *kubev1.Event) (done bool)

Jump to

Keyboard shortcuts

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