testing

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCloudInit

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

func CreateContainer

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

func CreateContainerWithMachineAndNetworkAndStorageConfig

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

func CreateContainerWithMachineConfig

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

func MockMachineConfig

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

Types

type MockInitialiser

type MockInitialiser struct {
	// contains filtered or unexported fields
}

MockInitialiser is a mock of Initialiser interface

func NewMockInitialiser

func NewMockInitialiser(ctrl *gomock.Controller) *MockInitialiser

NewMockInitialiser creates a new mock instance

func (*MockInitialiser) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockInitialiser) Initialise

func (m *MockInitialiser) Initialise() error

Initialise mocks base method

type MockInitialiserMockRecorder

type MockInitialiserMockRecorder struct {
	// contains filtered or unexported fields
}

MockInitialiserMockRecorder is the mock recorder for MockInitialiser

func (*MockInitialiserMockRecorder) Initialise

func (mr *MockInitialiserMockRecorder) Initialise() *gomock.Call

Initialise indicates an expected call of Initialise

type MockManager

type MockManager struct {
	// contains filtered or unexported fields
}

MockManager is a mock of Manager interface

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance

func (*MockManager) CreateContainer

CreateContainer mocks base method

func (*MockManager) DestroyContainer

func (m *MockManager) DestroyContainer(arg0 instance.Id) error

DestroyContainer mocks base method

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockManager) IsInitialized

func (m *MockManager) IsInitialized() bool

IsInitialized mocks base method

func (*MockManager) ListContainers

func (m *MockManager) ListContainers() ([]instances.Instance, error)

ListContainers mocks base method

func (*MockManager) Namespace

func (m *MockManager) Namespace() instance.Namespace

Namespace mocks base method

type MockManagerMockRecorder

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager

func (*MockManagerMockRecorder) CreateContainer

func (mr *MockManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

CreateContainer indicates an expected call of CreateContainer

func (*MockManagerMockRecorder) DestroyContainer

func (mr *MockManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call

DestroyContainer indicates an expected call of DestroyContainer

func (*MockManagerMockRecorder) IsInitialized

func (mr *MockManagerMockRecorder) IsInitialized() *gomock.Call

IsInitialized indicates an expected call of IsInitialized

func (*MockManagerMockRecorder) ListContainers

func (mr *MockManagerMockRecorder) ListContainers() *gomock.Call

ListContainers indicates an expected call of ListContainers

func (*MockManagerMockRecorder) Namespace

func (mr *MockManagerMockRecorder) Namespace() *gomock.Call

Namespace indicates an expected call of Namespace

type MockTestLXDManager

type MockTestLXDManager struct {
	// contains filtered or unexported fields
}

MockTestLXDManager is a mock of TestLXDManager interface

func NewMockTestLXDManager

func NewMockTestLXDManager(ctrl *gomock.Controller) *MockTestLXDManager

NewMockTestLXDManager creates a new mock instance

func (*MockTestLXDManager) AssignLXDProfiles

func (m *MockTestLXDManager) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)

AssignLXDProfiles mocks base method

func (*MockTestLXDManager) CreateContainer

CreateContainer mocks base method

func (*MockTestLXDManager) DestroyContainer

func (m *MockTestLXDManager) DestroyContainer(arg0 instance.Id) error

DestroyContainer mocks base method

func (*MockTestLXDManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTestLXDManager) IsInitialized

func (m *MockTestLXDManager) IsInitialized() bool

IsInitialized mocks base method

func (*MockTestLXDManager) LXDProfileNames

func (m *MockTestLXDManager) LXDProfileNames(arg0 string) ([]string, error)

LXDProfileNames mocks base method

func (*MockTestLXDManager) ListContainers

func (m *MockTestLXDManager) ListContainers() ([]instances.Instance, error)

ListContainers mocks base method

func (*MockTestLXDManager) MaybeWriteLXDProfile

func (m *MockTestLXDManager) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error

MaybeWriteLXDProfile mocks base method

func (*MockTestLXDManager) Namespace

func (m *MockTestLXDManager) Namespace() instance.Namespace

Namespace mocks base method

type MockTestLXDManagerMockRecorder

type MockTestLXDManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockTestLXDManagerMockRecorder is the mock recorder for MockTestLXDManager

func (*MockTestLXDManagerMockRecorder) AssignLXDProfiles

func (mr *MockTestLXDManagerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 interface{}) *gomock.Call

AssignLXDProfiles indicates an expected call of AssignLXDProfiles

func (*MockTestLXDManagerMockRecorder) CreateContainer

func (mr *MockTestLXDManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

CreateContainer indicates an expected call of CreateContainer

func (*MockTestLXDManagerMockRecorder) DestroyContainer

func (mr *MockTestLXDManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call

DestroyContainer indicates an expected call of DestroyContainer

func (*MockTestLXDManagerMockRecorder) IsInitialized

func (mr *MockTestLXDManagerMockRecorder) IsInitialized() *gomock.Call

IsInitialized indicates an expected call of IsInitialized

func (*MockTestLXDManagerMockRecorder) LXDProfileNames

func (mr *MockTestLXDManagerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call

LXDProfileNames indicates an expected call of LXDProfileNames

func (*MockTestLXDManagerMockRecorder) ListContainers

func (mr *MockTestLXDManagerMockRecorder) ListContainers() *gomock.Call

ListContainers indicates an expected call of ListContainers

func (*MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile

func (mr *MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call

MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile

func (*MockTestLXDManagerMockRecorder) Namespace

func (mr *MockTestLXDManagerMockRecorder) Namespace() *gomock.Call

Namespace indicates an expected call of Namespace

Jump to

Keyboard shortcuts

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