testing

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 14 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 CreateContainerWithMachineAndNetworkConfig

func CreateContainerWithMachineAndNetworkConfig(
	c *gc.C,
	manager container.Manager,
	machineConfig *cloudinit.MachineConfig,
	networkConfig *container.NetworkConfig,
) instance.Instance

func CreateContainerWithMachineConfig

func CreateContainerWithMachineConfig(
	c *gc.C,
	manager container.Manager,
	machineConfig *cloudinit.MachineConfig,
) instance.Instance

func MockMachineConfig

func MockMachineConfig(machineId string) (*cloudinit.MachineConfig, 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