testutilities

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLCOWBlankRWLayer

func CreateLCOWBlankRWLayer(t *testing.T, vmID string) string

CreateLCOWBlankRWLayer uses an LCOW utility VM to create a blank VHDX and format it ext4. If vmID is supplied, it grants access to the destination file. This can then be used as a scratch space for a container, or for a "service VM".

func CreateLCOWUVM

func CreateLCOWUVM(t *testing.T, id string) *uvm.UtilityVM

CreateLCOWUVM creates an LCOW utility VM.

func CreateTempDir

func CreateTempDir(t *testing.T) string

CreateTempDir creates a temporary directory

func CreateWCOWBlankRWLayer

func CreateWCOWBlankRWLayer(t *testing.T, imageLayers []string) string

CreateWCOWBlankRWLayer uses HCS to create a temp test directory containing a read-write layer containing a disk that can be used as a containers scratch space. The VHD is created with VM group access TODO: This is wrong. Need to search the folders.

func CreateWCOWUVM

func CreateWCOWUVM(t *testing.T, uvmLayers []string, id string, resources *specs.WindowsResources) (*uvm.UtilityVM, string)

CreateWCOWUVM creates a WCOW utility VM. Returns the UtilityVM object; folder used as its scratch

func GetDefaultLinuxSpec

func GetDefaultLinuxSpec(t *testing.T) *specs.Spec

func GetDefaultWindowsSpec

func GetDefaultWindowsSpec(t *testing.T) *specs.Spec

func LayerFolders

func LayerFolders(t *testing.T, imageName string) []string

func RequiresBuild

func RequiresBuild(t *testing.T, b uint16)

Types

This section is empty.

Jump to

Keyboard shortcuts

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