test

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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