tests

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 11 Imported by: 1

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 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 ObjectEventWatcher

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

func NewObjectEventWatcher

func NewObjectEventWatcher(object runtime.Object, process ProcessFunc) *ObjectEventWatcher

func (*ObjectEventWatcher) Watch

func (w *ObjectEventWatcher) Watch()

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