test

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVM

CreateVM provides a moref to a created VM

func PickRandomHost

func PickRandomHost(ctx context.Context, session *session.Session, t *testing.T) *object.HostSystem

PickRandomHost returns a random object.HostSystem from the hosts attached to the datastore and also lives in the same cluster

func Session

func Session(ctx context.Context, t *testing.T) *session.Session

Session returns a session.Session struct

func SessionWithESX

func SessionWithESX(ctx context.Context, service string) (*session.Session, error)

SessionWithESX returns a general-purpose ESX session for tests.

func SessionWithVPX

func SessionWithVPX(ctx context.Context, service string) (*session.Session, error)

SessionWithVPX returns a general-purpose VPX session for tests.

func SpecConfig

func SpecConfig(session *session.Session, name string) *spec.VirtualMachineConfigSpecConfig

SpecConfig returns a spec.VirtualMachineConfigSpecConfig struct

func VpxModelSetup

func VpxModelSetup(ctx context.Context, t *testing.T) (*simulator.Model, *simulator.Server, *session.Session)

VpxModelSetup creates a VPX model, starts its server and populates the session. The caller must clean up the model and the server once it is done using them.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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