testing

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FakeLxcURLScript = `#!/bin/bash
echo -n test://cloud-images/$1-$2-$3.tar.gz`

FakeLxcURLScript is used to replace ubuntu-cloudimg-query in tests.

Functions

func AssertCloudInit

func AssertCloudInit(c *gc.C, filename string) []byte

func CreateContainer

func CreateContainer(c *gc.C, manager container.Manager, machineId string) instance.Instance

func CreateContainerTest

func CreateContainerTest(c *gc.C, manager container.Manager, machineId string) (instance.Instance, error)

CreateContainerTest tries to create a container and returns any errors encountered along the way

func CreateContainerWithMachineAndNetworkAndStorageConfig

func CreateContainerWithMachineAndNetworkAndStorageConfig(
	c *gc.C,
	manager container.Manager,
	instanceConfig *instancecfg.InstanceConfig,
	networkConfig *container.NetworkConfig,
	storageConfig *container.StorageConfig,
) instance.Instance

func CreateContainerWithMachineConfig

func CreateContainerWithMachineConfig(
	c *gc.C,
	manager container.Manager,
	instanceConfig *instancecfg.InstanceConfig,
) instance.Instance

func EnsureLXCRootFSEtcNetwork

func EnsureLXCRootFSEtcNetwork(c *gc.C, containerName string)

func MockMachineConfig

func MockMachineConfig(machineId string) (*instancecfg.InstanceConfig, error)

Types

type MockURLGetter

type MockURLGetter struct{}

MockURLGetter implements ImageURLGetter.

func (*MockURLGetter) CACert

func (ug *MockURLGetter) CACert() []byte

func (*MockURLGetter) ImageURL

func (ug *MockURLGetter) ImageURL(kind instance.ContainerType, series, arch string) (string, error)

Jump to

Keyboard shortcuts

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