Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	V100    = version.MustParse("1.0.0")
	V100p64 = version.MustParseBinary("1.0.0-precise-amd64")
	V100p32 = version.MustParseBinary("1.0.0-precise-i386")
	V100p   = []version.Binary{V100p64, V100p32}

	V100q64 = version.MustParseBinary("1.0.0-quantal-amd64")
	V100q32 = version.MustParseBinary("1.0.0-quantal-i386")
	V100q   = []version.Binary{V100q64, V100q32}
	V100all = append(V100p, V100q...)

	V1001    = version.MustParse("1.0.0.1")
	V1001p64 = version.MustParseBinary("1.0.0.1-precise-amd64")
	V100Xall = append(V100all, V1001p64)

	V110    = version.MustParse("1.1.0")
	V110p64 = version.MustParseBinary("1.1.0-precise-amd64")
	V110p32 = version.MustParseBinary("1.1.0-precise-i386")
	V110p   = []version.Binary{V110p64, V110p32}

	V110q64 = version.MustParseBinary("1.1.0-quantal-amd64")
	V110q32 = version.MustParseBinary("1.1.0-quantal-i386")
	V110q   = []version.Binary{V110q64, V110q32}
	V110all = append(V110p, V110q...)

	V1101p64 = version.MustParseBinary("1.1.0.1-precise-amd64")
	V110Xall = append(V110all, V1101p64)

	V120    = version.MustParse("1.2.0")
	V120p64 = version.MustParseBinary("1.2.0-precise-amd64")
	V120p32 = version.MustParseBinary("1.2.0-precise-i386")
	V120p   = []version.Binary{V120p64, V120p32}

	V120q64 = version.MustParseBinary("1.2.0-quantal-amd64")
	V120q32 = version.MustParseBinary("1.2.0-quantal-i386")
	V120q   = []version.Binary{V120q64, V120q32}

	V120t64 = version.MustParseBinary("1.2.0-trusty-amd64")
	V120t32 = version.MustParseBinary("1.2.0-trusty-i386")
	V120t   = []version.Binary{V120t64, V120t32}

	V120all = append(append(V120p, V120q...), V120t...)
	V1all   = append(V100Xall, append(V110all, V120all...)...)

	V220    = version.MustParse("2.2.0")
	V220p32 = version.MustParseBinary("2.2.0-precise-i386")
	V220p64 = version.MustParseBinary("2.2.0-precise-amd64")
	V220q32 = version.MustParseBinary("2.2.0-quantal-i386")
	V220q64 = version.MustParseBinary("2.2.0-quantal-amd64")
	V220all = []version.Binary{V220p64, V220p32, V220q64, V220q32}
	VAll    = append(V1all, V220all...)

	V31d0qppc64  = version.MustParseBinary("3.1-dev0-quantal-ppc64el")
	V31d01qppc64 = version.MustParseBinary("3.1-dev0.1-quantal-ppc64el")
)
View Source
var BootstrapToolsTests = []BootstrapToolsTest{
	{
		Info:          "no tools at all",
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: use newest compatible release version",
		Available:     VAll,
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Expect:        V100p,
	}, {
		Info:          "released cli: cli Arch ignored",
		Available:     VAll,
		CliVersion:    V100p32,
		DefaultSeries: "precise",
		Expect:        V100p,
	}, {
		Info:          "released cli: cli series ignored",
		Available:     VAll,
		CliVersion:    V100q64,
		DefaultSeries: "precise",
		Expect:        V100p,
	}, {
		Info:          "released cli: series taken from default-series",
		Available:     V120all,
		CliVersion:    V120p64,
		DefaultSeries: "quantal",
		Expect:        V120q,
	}, {
		Info:          "released cli: ignore close dev match",
		Available:     V100Xall,
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Expect:        V100p,
	}, {
		Info:          "released cli: filter by arch constraints",
		Available:     V120all,
		CliVersion:    V120p64,
		DefaultSeries: "precise",
		Arch:          "i386",
		Expect:        []version.Binary{V120p32},
	}, {
		Info:          "released cli: specific released version",
		Available:     VAll,
		CliVersion:    V100p64,
		AgentVersion:  V100,
		DefaultSeries: "precise",
		Expect:        V100p,
	}, {
		Info:          "released cli: specific dev version",
		Available:     VAll,
		CliVersion:    V110p64,
		AgentVersion:  V110,
		DefaultSeries: "precise",
		Expect:        V110p,
	}, {
		Info:          "released cli: major upgrades bad",
		Available:     V220all,
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: minor upgrades bad",
		Available:     V120all,
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: major downgrades bad",
		Available:     V100Xall,
		CliVersion:    V220p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: minor downgrades bad",
		Available:     V100Xall,
		CliVersion:    V120p64,
		DefaultSeries: "quantal",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: no matching series",
		Available:     VAll,
		CliVersion:    V100p64,
		DefaultSeries: "raring",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: no matching arches",
		Available:     VAll,
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Arch:          "armhf",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: specific bad major 1",
		Available:     VAll,
		CliVersion:    V220p64,
		AgentVersion:  V120,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: specific bad major 2",
		Available:     VAll,
		CliVersion:    V120p64,
		AgentVersion:  V220,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: ignore dev tools 1",
		Available:     V110all,
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: ignore dev tools 2",
		Available:     V110all,
		CliVersion:    V120p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli: ignore dev tools 3",
		Available:     []version.Binary{V1001p64},
		CliVersion:    V100p64,
		DefaultSeries: "precise",
		Err:           noToolsMessage,
	}, {
		Info:          "released cli with dev setting respects agent-version",
		Available:     VAll,
		CliVersion:    V100q32,
		AgentVersion:  V1001,
		DefaultSeries: "precise",
		Development:   true,
		Expect:        []version.Binary{V1001p64},
	}, {
		Info:          "dev cli respects agent-version",
		Available:     VAll,
		CliVersion:    V100q32,
		AgentVersion:  V1001,
		DefaultSeries: "precise",
		Expect:        []version.Binary{V1001p64},
	}, {
		Info:          "released cli with dev setting respects agent-version",
		Available:     V1all,
		CliVersion:    V100q32,
		AgentVersion:  V1001,
		DefaultSeries: "precise",
		Development:   true,
		Expect:        []version.Binary{V1001p64},
	}, {
		Info:          "dev cli respects agent-version",
		Available:     V1all,
		CliVersion:    V100q32,
		AgentVersion:  V1001,
		DefaultSeries: "precise",
		Expect:        []version.Binary{V1001p64},
	}}

Functions

func AssertProviderAuthTypes

func AssertProviderAuthTypes(c *gc.C, p environs.EnvironProvider, expectedAuthTypes ...cloud.AuthType)

AssertProviderAuthTypes asserts that the given provider has credential schemas for exactly the specified set of authentication types.

func AssertProviderCredentialsAttributesHidden

func AssertProviderCredentialsAttributesHidden(c *gc.C, p environs.EnvironProvider, authType cloud.AuthType, expectedHidden ...string)

AssertProviderCredentialsAttributesHidden asserts that the provider credentials schema for the given provider and authentication type marks the specified attributes (and only those attributes) as being hidden.

func AssertProviderCredentialsValid

func AssertProviderCredentialsValid(c *gc.C, p environs.EnvironProvider, authType cloud.AuthType, attrs map[string]string)

AssertProviderCredentialsValid asserts that the given provider is able to validate the given authentication type and credential attributes; and that removing any one of the attributes will cause the validation to fail.

func AssertUploadFakeToolsVersions

func AssertUploadFakeToolsVersions(c *gc.C, stor storage.Storage, toolsDir, stream string, versions ...version.Binary) []*coretools.Tools

AssertUploadFakeToolsVersions puts fake tools in the supplied storage for the supplied versions.

func BootstrapContext

func BootstrapContext(c *gc.C) environs.BootstrapContext

BootstrapContext creates a simple bootstrap execution context.

func CheckTools

func CheckTools(c *gc.C, obtained, expected *coretools.Tools)

CheckTools ensures the obtained and expected tools are equal, allowing for the fact that the obtained tools may not have size and checksum set.

func CheckUpgraderReadyError

func CheckUpgraderReadyError(c *gc.C, obtained error, expected *agenterrors.UpgradeReadyError)

CheckUpgraderReadyError ensures the obtained and expected errors are equal.

func CreateLocalTestStorage

func CreateLocalTestStorage(c *gc.C) (closer io.Closer, stor storage.Storage, dataDir string)

CreateLocalTestStorage returns the listener, which needs to be closed, and the storage that is backed by a directory created in the running test's temp directory.

func DisableFinishBootstrap

func DisableFinishBootstrap() func()

DisableFinishBootstrap disables common.FinishBootstrap so that tests do not attempt to SSH to non-existent machines. The result is a function that restores finishBootstrap.

func InstallFakeDownloadedTools

func InstallFakeDownloadedTools(c *gc.C, dataDir string, vers version.Binary) *coretools.Tools

InstallFakeDownloadedTools creates and unpacks fake tools of the given version into the data directory specified.

func MustUploadFakeTools

func MustUploadFakeTools(stor storage.Storage, toolsDir, stream string)

MustUploadFakeTools acts as UploadFakeTools, but panics on failure.

func MustUploadFakeToolsVersions

func MustUploadFakeToolsVersions(stor storage.Storage, stream string, versions ...version.Binary) []*coretools.Tools

MustUploadFakeToolsVersions acts as UploadFakeToolsVersions, but panics on failure.

func PatchAttemptStrategies

func PatchAttemptStrategies(strategies ...*utils.AttemptStrategy) func()

PatchAttemptStrategies patches environs' global polling strategy, plus any otther AttemptStrategy objects whose addresses you pass, to very short polling and timeout times so that tests can run fast. It returns a cleanup function that restores the original settings. You must call this afterwards.

TODO(katco): 2016-08-09: lp:1611427

func PrimeTools

func PrimeTools(c *gc.C, stor storage.Storage, dataDir, toolsDir string, vers version.Binary) *coretools.Tools

PrimeTools sets up the current version of the tools to vers and makes sure that they're available in the dataDir.

func RemoveFakeTools

func RemoveFakeTools(c *gc.C, stor storage.Storage, toolsDir string)

RemoveFakeTools deletes the fake tools from the supplied storage.

func RemoveFakeToolsMetadata

func RemoveFakeToolsMetadata(c *gc.C, stor storage.Storage)

RemoveFakeToolsMetadata deletes the fake simplestreams tools metadata from the supplied storage.

func RemoveTools

func RemoveTools(c *gc.C, stor storage.Storage, toolsDir string)

RemoveTools deletes all tools from the supplied storage.

func SignFileData

func SignFileData(stor storage.Storage, fileName string) error

func SignTestTools

func SignTestTools(stor storage.Storage) error

func UploadFakeTools

func UploadFakeTools(c *gc.C, stor storage.Storage, toolsDir, stream string)

UploadFakeTools puts fake tools into the supplied storage with a binary version matching jujuversion.Current; if jujuversion.Current's series is different to juju/juju/version.SupportedLTS(), matching fake tools will be uploaded for that series. This is useful for tests that are kinda casual about specifying their environment.

func UploadFakeToolsVersions

func UploadFakeToolsVersions(stor storage.Storage, toolsDir, stream string, versions ...version.Binary) ([]*coretools.Tools, error)

UploadFakeToolsVersions puts fake tools in the supplied storage for the supplied versions.

Types

type BootstrapToolsTest

type BootstrapToolsTest struct {
	Info          string
	Available     []version.Binary
	CliVersion    version.Binary
	DefaultSeries string
	AgentVersion  version.Number
	Development   bool
	Arch          string
	Expect        []version.Binary
	Err           string
}

type MockCloudDestroyer

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

MockCloudDestroyer is a mock of CloudDestroyer interface

func NewMockCloudDestroyer

func NewMockCloudDestroyer(ctrl *gomock.Controller) *MockCloudDestroyer

NewMockCloudDestroyer creates a new mock instance

func (*MockCloudDestroyer) Destroy

Destroy mocks base method

func (*MockCloudDestroyer) EXPECT

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

type MockCloudDestroyerMockRecorder

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

MockCloudDestroyerMockRecorder is the mock recorder for MockCloudDestroyer

func (*MockCloudDestroyerMockRecorder) Destroy

func (mr *MockCloudDestroyerMockRecorder) Destroy(arg0 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy

type MockCloudDetector

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

MockCloudDetector is a mock of CloudDetector interface

func NewMockCloudDetector

func NewMockCloudDetector(ctrl *gomock.Controller) *MockCloudDetector

NewMockCloudDetector creates a new mock instance

func (*MockCloudDetector) DetectCloud

func (m *MockCloudDetector) DetectCloud(arg0 string) (cloud.Cloud, error)

DetectCloud mocks base method

func (*MockCloudDetector) DetectClouds

func (m *MockCloudDetector) DetectClouds() ([]cloud.Cloud, error)

DetectClouds mocks base method

func (*MockCloudDetector) EXPECT

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

type MockCloudDetectorMockRecorder

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

MockCloudDetectorMockRecorder is the mock recorder for MockCloudDetector

func (*MockCloudDetectorMockRecorder) DetectCloud

func (mr *MockCloudDetectorMockRecorder) DetectCloud(arg0 interface{}) *gomock.Call

DetectCloud indicates an expected call of DetectCloud

func (*MockCloudDetectorMockRecorder) DetectClouds

func (mr *MockCloudDetectorMockRecorder) DetectClouds() *gomock.Call

DetectClouds indicates an expected call of DetectClouds

type MockCloudEnvironProvider

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

MockCloudEnvironProvider is a mock of CloudEnvironProvider interface

func NewMockCloudEnvironProvider

func NewMockCloudEnvironProvider(ctrl *gomock.Controller) *MockCloudEnvironProvider

NewMockCloudEnvironProvider creates a new mock instance

func (*MockCloudEnvironProvider) CloudSchema

func (m *MockCloudEnvironProvider) CloudSchema() *jsonschema.Schema

CloudSchema mocks base method

func (*MockCloudEnvironProvider) CredentialSchemas

func (m *MockCloudEnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema

CredentialSchemas mocks base method

func (*MockCloudEnvironProvider) DetectCredentials

func (m *MockCloudEnvironProvider) DetectCredentials() (*cloud.CloudCredential, error)

DetectCredentials mocks base method

func (*MockCloudEnvironProvider) EXPECT

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

func (*MockCloudEnvironProvider) FinalizeCredential

FinalizeCredential mocks base method

func (*MockCloudEnvironProvider) Open

Open mocks base method

func (*MockCloudEnvironProvider) Ping

Ping mocks base method

func (*MockCloudEnvironProvider) PrepareConfig

PrepareConfig mocks base method

func (*MockCloudEnvironProvider) Validate

func (m *MockCloudEnvironProvider) Validate(arg0, arg1 *config.Config) (*config.Config, error)

Validate mocks base method

func (*MockCloudEnvironProvider) Version

func (m *MockCloudEnvironProvider) Version() int

Version mocks base method

type MockCloudEnvironProviderMockRecorder

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

MockCloudEnvironProviderMockRecorder is the mock recorder for MockCloudEnvironProvider

func (*MockCloudEnvironProviderMockRecorder) CloudSchema

CloudSchema indicates an expected call of CloudSchema

func (*MockCloudEnvironProviderMockRecorder) CredentialSchemas

func (mr *MockCloudEnvironProviderMockRecorder) CredentialSchemas() *gomock.Call

CredentialSchemas indicates an expected call of CredentialSchemas

func (*MockCloudEnvironProviderMockRecorder) DetectCredentials

func (mr *MockCloudEnvironProviderMockRecorder) DetectCredentials() *gomock.Call

DetectCredentials indicates an expected call of DetectCredentials

func (*MockCloudEnvironProviderMockRecorder) FinalizeCredential

func (mr *MockCloudEnvironProviderMockRecorder) FinalizeCredential(arg0, arg1 interface{}) *gomock.Call

FinalizeCredential indicates an expected call of FinalizeCredential

func (*MockCloudEnvironProviderMockRecorder) Open

func (mr *MockCloudEnvironProviderMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockCloudEnvironProviderMockRecorder) Ping

func (mr *MockCloudEnvironProviderMockRecorder) Ping(arg0, arg1 interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockCloudEnvironProviderMockRecorder) PrepareConfig

func (mr *MockCloudEnvironProviderMockRecorder) PrepareConfig(arg0 interface{}) *gomock.Call

PrepareConfig indicates an expected call of PrepareConfig

func (*MockCloudEnvironProviderMockRecorder) Validate

func (mr *MockCloudEnvironProviderMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate

func (*MockCloudEnvironProviderMockRecorder) Version

Version indicates an expected call of Version

type MockCloudFinalizer

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

MockCloudFinalizer is a mock of CloudFinalizer interface

func NewMockCloudFinalizer

func NewMockCloudFinalizer(ctrl *gomock.Controller) *MockCloudFinalizer

NewMockCloudFinalizer creates a new mock instance

func (*MockCloudFinalizer) EXPECT

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

func (*MockCloudFinalizer) FinalizeCloud

func (m *MockCloudFinalizer) FinalizeCloud(arg0 environs.FinalizeCloudContext, arg1 cloud.Cloud) (cloud.Cloud, error)

FinalizeCloud mocks base method

type MockCloudFinalizerMockRecorder

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

MockCloudFinalizerMockRecorder is the mock recorder for MockCloudFinalizer

func (*MockCloudFinalizerMockRecorder) FinalizeCloud

func (mr *MockCloudFinalizerMockRecorder) FinalizeCloud(arg0, arg1 interface{}) *gomock.Call

FinalizeCloud indicates an expected call of FinalizeCloud

type MockCloudRegionDetector

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

MockCloudRegionDetector is a mock of CloudRegionDetector interface

func NewMockCloudRegionDetector

func NewMockCloudRegionDetector(ctrl *gomock.Controller) *MockCloudRegionDetector

NewMockCloudRegionDetector creates a new mock instance

func (*MockCloudRegionDetector) DetectRegions

func (m *MockCloudRegionDetector) DetectRegions() ([]cloud.Region, error)

DetectRegions mocks base method

func (*MockCloudRegionDetector) EXPECT

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

type MockCloudRegionDetectorMockRecorder

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

MockCloudRegionDetectorMockRecorder is the mock recorder for MockCloudRegionDetector

func (*MockCloudRegionDetectorMockRecorder) DetectRegions

func (mr *MockCloudRegionDetectorMockRecorder) DetectRegions() *gomock.Call

DetectRegions indicates an expected call of DetectRegions

type MockConfigGetter

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

MockConfigGetter is a mock of ConfigGetter interface

func NewMockConfigGetter

func NewMockConfigGetter(ctrl *gomock.Controller) *MockConfigGetter

NewMockConfigGetter creates a new mock instance

func (*MockConfigGetter) Config

func (m *MockConfigGetter) Config() *config.Config

Config mocks base method

func (*MockConfigGetter) EXPECT

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

type MockConfigGetterMockRecorder

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

MockConfigGetterMockRecorder is the mock recorder for MockConfigGetter

func (*MockConfigGetterMockRecorder) Config

Config indicates an expected call of Config

type MockDefaultConstraintsChecker

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

MockDefaultConstraintsChecker is a mock of DefaultConstraintsChecker interface

func NewMockDefaultConstraintsChecker

func NewMockDefaultConstraintsChecker(ctrl *gomock.Controller) *MockDefaultConstraintsChecker

NewMockDefaultConstraintsChecker creates a new mock instance

func (*MockDefaultConstraintsChecker) EXPECT

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

func (*MockDefaultConstraintsChecker) ShouldApplyControllerConstraints

func (m *MockDefaultConstraintsChecker) ShouldApplyControllerConstraints() bool

ShouldApplyControllerConstraints mocks base method

type MockDefaultConstraintsCheckerMockRecorder

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

MockDefaultConstraintsCheckerMockRecorder is the mock recorder for MockDefaultConstraintsChecker

func (*MockDefaultConstraintsCheckerMockRecorder) ShouldApplyControllerConstraints

func (mr *MockDefaultConstraintsCheckerMockRecorder) ShouldApplyControllerConstraints() *gomock.Call

ShouldApplyControllerConstraints indicates an expected call of ShouldApplyControllerConstraints

type MockEnviron

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

MockEnviron is a mock of Environ interface

func NewMockEnviron

func NewMockEnviron(ctrl *gomock.Controller) *MockEnviron

NewMockEnviron creates a new mock instance

func (*MockEnviron) AdoptResources

func (m *MockEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error

AdoptResources mocks base method

func (*MockEnviron) AllInstances

func (m *MockEnviron) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllInstances mocks base method

func (*MockEnviron) AllRunningInstances

func (m *MockEnviron) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllRunningInstances mocks base method

func (*MockEnviron) Bootstrap

Bootstrap mocks base method

func (*MockEnviron) Config

func (m *MockEnviron) Config() *config.Config

Config mocks base method

func (*MockEnviron) ConstraintsValidator

func (m *MockEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)

ConstraintsValidator mocks base method

func (*MockEnviron) ControllerInstances

func (m *MockEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error)

ControllerInstances mocks base method

func (*MockEnviron) Create

Create mocks base method

func (*MockEnviron) Destroy

func (m *MockEnviron) Destroy(arg0 context.ProviderCallContext) error

Destroy mocks base method

func (*MockEnviron) DestroyController

func (m *MockEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error

DestroyController mocks base method

func (*MockEnviron) EXPECT

func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder

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

func (*MockEnviron) InstanceTypes

InstanceTypes mocks base method

func (*MockEnviron) Instances

func (m *MockEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)

Instances mocks base method

func (*MockEnviron) PrecheckInstance

PrecheckInstance mocks base method

func (*MockEnviron) PrepareForBootstrap

func (m *MockEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error

PrepareForBootstrap mocks base method

func (*MockEnviron) Provider

func (m *MockEnviron) Provider() environs.EnvironProvider

Provider mocks base method

func (*MockEnviron) SetConfig

func (m *MockEnviron) SetConfig(arg0 *config.Config) error

SetConfig mocks base method

func (*MockEnviron) StartInstance

StartInstance mocks base method

func (*MockEnviron) StopInstances

func (m *MockEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error

StopInstances mocks base method

func (*MockEnviron) StorageProvider

func (m *MockEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)

StorageProvider mocks base method

func (*MockEnviron) StorageProviderTypes

func (m *MockEnviron) StorageProviderTypes() ([]storage.ProviderType, error)

StorageProviderTypes mocks base method

type MockEnvironMockRecorder

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

MockEnvironMockRecorder is the mock recorder for MockEnviron

func (*MockEnvironMockRecorder) AdoptResources

func (mr *MockEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call

AdoptResources indicates an expected call of AdoptResources

func (*MockEnvironMockRecorder) AllInstances

func (mr *MockEnvironMockRecorder) AllInstances(arg0 interface{}) *gomock.Call

AllInstances indicates an expected call of AllInstances

func (*MockEnvironMockRecorder) AllRunningInstances

func (mr *MockEnvironMockRecorder) AllRunningInstances(arg0 interface{}) *gomock.Call

AllRunningInstances indicates an expected call of AllRunningInstances

func (*MockEnvironMockRecorder) Bootstrap

func (mr *MockEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call

Bootstrap indicates an expected call of Bootstrap

func (*MockEnvironMockRecorder) Config

func (mr *MockEnvironMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config

func (*MockEnvironMockRecorder) ConstraintsValidator

func (mr *MockEnvironMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call

ConstraintsValidator indicates an expected call of ConstraintsValidator

func (*MockEnvironMockRecorder) ControllerInstances

func (mr *MockEnvironMockRecorder) ControllerInstances(arg0, arg1 interface{}) *gomock.Call

ControllerInstances indicates an expected call of ControllerInstances

func (*MockEnvironMockRecorder) Create

func (mr *MockEnvironMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockEnvironMockRecorder) Destroy

func (mr *MockEnvironMockRecorder) Destroy(arg0 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy

func (*MockEnvironMockRecorder) DestroyController

func (mr *MockEnvironMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call

DestroyController indicates an expected call of DestroyController

func (*MockEnvironMockRecorder) InstanceTypes

func (mr *MockEnvironMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call

InstanceTypes indicates an expected call of InstanceTypes

func (*MockEnvironMockRecorder) Instances

func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 interface{}) *gomock.Call

Instances indicates an expected call of Instances

func (*MockEnvironMockRecorder) PrecheckInstance

func (mr *MockEnvironMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call

PrecheckInstance indicates an expected call of PrecheckInstance

func (*MockEnvironMockRecorder) PrepareForBootstrap

func (mr *MockEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 interface{}) *gomock.Call

PrepareForBootstrap indicates an expected call of PrepareForBootstrap

func (*MockEnvironMockRecorder) Provider

func (mr *MockEnvironMockRecorder) Provider() *gomock.Call

Provider indicates an expected call of Provider

func (*MockEnvironMockRecorder) SetConfig

func (mr *MockEnvironMockRecorder) SetConfig(arg0 interface{}) *gomock.Call

SetConfig indicates an expected call of SetConfig

func (*MockEnvironMockRecorder) StartInstance

func (mr *MockEnvironMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call

StartInstance indicates an expected call of StartInstance

func (*MockEnvironMockRecorder) StopInstances

func (mr *MockEnvironMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call

StopInstances indicates an expected call of StopInstances

func (*MockEnvironMockRecorder) StorageProvider

func (mr *MockEnvironMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call

StorageProvider indicates an expected call of StorageProvider

func (*MockEnvironMockRecorder) StorageProviderTypes

func (mr *MockEnvironMockRecorder) StorageProviderTypes() *gomock.Call

StorageProviderTypes indicates an expected call of StorageProviderTypes

type MockEnvironProvider

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

MockEnvironProvider is a mock of EnvironProvider interface

func NewMockEnvironProvider

func NewMockEnvironProvider(ctrl *gomock.Controller) *MockEnvironProvider

NewMockEnvironProvider creates a new mock instance

func (*MockEnvironProvider) CloudSchema

func (m *MockEnvironProvider) CloudSchema() *jsonschema.Schema

CloudSchema mocks base method

func (*MockEnvironProvider) CredentialSchemas

func (m *MockEnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema

CredentialSchemas mocks base method

func (*MockEnvironProvider) DetectCredentials

func (m *MockEnvironProvider) DetectCredentials() (*cloud.CloudCredential, error)

DetectCredentials mocks base method

func (*MockEnvironProvider) EXPECT

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

func (*MockEnvironProvider) FinalizeCredential

FinalizeCredential mocks base method

func (*MockEnvironProvider) Ping

Ping mocks base method

func (*MockEnvironProvider) PrepareConfig

PrepareConfig mocks base method

func (*MockEnvironProvider) Validate

func (m *MockEnvironProvider) Validate(arg0, arg1 *config.Config) (*config.Config, error)

Validate mocks base method

func (*MockEnvironProvider) Version

func (m *MockEnvironProvider) Version() int

Version mocks base method

type MockEnvironProviderMockRecorder

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

MockEnvironProviderMockRecorder is the mock recorder for MockEnvironProvider

func (*MockEnvironProviderMockRecorder) CloudSchema

func (mr *MockEnvironProviderMockRecorder) CloudSchema() *gomock.Call

CloudSchema indicates an expected call of CloudSchema

func (*MockEnvironProviderMockRecorder) CredentialSchemas

func (mr *MockEnvironProviderMockRecorder) CredentialSchemas() *gomock.Call

CredentialSchemas indicates an expected call of CredentialSchemas

func (*MockEnvironProviderMockRecorder) DetectCredentials

func (mr *MockEnvironProviderMockRecorder) DetectCredentials() *gomock.Call

DetectCredentials indicates an expected call of DetectCredentials

func (*MockEnvironProviderMockRecorder) FinalizeCredential

func (mr *MockEnvironProviderMockRecorder) FinalizeCredential(arg0, arg1 interface{}) *gomock.Call

FinalizeCredential indicates an expected call of FinalizeCredential

func (*MockEnvironProviderMockRecorder) Ping

func (mr *MockEnvironProviderMockRecorder) Ping(arg0, arg1 interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockEnvironProviderMockRecorder) PrepareConfig

func (mr *MockEnvironProviderMockRecorder) PrepareConfig(arg0 interface{}) *gomock.Call

PrepareConfig indicates an expected call of PrepareConfig

func (*MockEnvironProviderMockRecorder) Validate

func (mr *MockEnvironProviderMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate

func (*MockEnvironProviderMockRecorder) Version

Version indicates an expected call of Version

type MockFinalizeCloudContext

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

MockFinalizeCloudContext is a mock of FinalizeCloudContext interface

func NewMockFinalizeCloudContext

func NewMockFinalizeCloudContext(ctrl *gomock.Controller) *MockFinalizeCloudContext

NewMockFinalizeCloudContext creates a new mock instance

func (*MockFinalizeCloudContext) EXPECT

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

func (*MockFinalizeCloudContext) Verbosef

func (m *MockFinalizeCloudContext) Verbosef(arg0 string, arg1 ...interface{})

Verbosef mocks base method

type MockFinalizeCloudContextMockRecorder

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

MockFinalizeCloudContextMockRecorder is the mock recorder for MockFinalizeCloudContext

func (*MockFinalizeCloudContextMockRecorder) Verbosef

func (mr *MockFinalizeCloudContextMockRecorder) Verbosef(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Verbosef indicates an expected call of Verbosef

type MockFinalizeCredentialContext

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

MockFinalizeCredentialContext is a mock of FinalizeCredentialContext interface

func NewMockFinalizeCredentialContext

func NewMockFinalizeCredentialContext(ctrl *gomock.Controller) *MockFinalizeCredentialContext

NewMockFinalizeCredentialContext creates a new mock instance

func (*MockFinalizeCredentialContext) EXPECT

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

func (*MockFinalizeCredentialContext) GetStderr

func (m *MockFinalizeCredentialContext) GetStderr() io.Writer

GetStderr mocks base method

type MockFinalizeCredentialContextMockRecorder

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

MockFinalizeCredentialContextMockRecorder is the mock recorder for MockFinalizeCredentialContext

func (*MockFinalizeCredentialContextMockRecorder) GetStderr

GetStderr indicates an expected call of GetStderr

type MockFirewaller

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

MockFirewaller is a mock of Firewaller interface

func NewMockFirewaller

func NewMockFirewaller(ctrl *gomock.Controller) *MockFirewaller

NewMockFirewaller creates a new mock instance

func (*MockFirewaller) ClosePorts

ClosePorts mocks base method

func (*MockFirewaller) EXPECT

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

func (*MockFirewaller) IngressRules

IngressRules mocks base method

func (*MockFirewaller) OpenPorts

OpenPorts mocks base method

type MockFirewallerMockRecorder

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

MockFirewallerMockRecorder is the mock recorder for MockFirewaller

func (*MockFirewallerMockRecorder) ClosePorts

func (mr *MockFirewallerMockRecorder) ClosePorts(arg0, arg1 interface{}) *gomock.Call

ClosePorts indicates an expected call of ClosePorts

func (*MockFirewallerMockRecorder) IngressRules

func (mr *MockFirewallerMockRecorder) IngressRules(arg0 interface{}) *gomock.Call

IngressRules indicates an expected call of IngressRules

func (*MockFirewallerMockRecorder) OpenPorts

func (mr *MockFirewallerMockRecorder) OpenPorts(arg0, arg1 interface{}) *gomock.Call

OpenPorts indicates an expected call of OpenPorts

type MockInstancePrechecker

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

MockInstancePrechecker is a mock of InstancePrechecker interface

func NewMockInstancePrechecker

func NewMockInstancePrechecker(ctrl *gomock.Controller) *MockInstancePrechecker

NewMockInstancePrechecker creates a new mock instance

func (*MockInstancePrechecker) EXPECT

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

func (*MockInstancePrechecker) PrecheckInstance

PrecheckInstance mocks base method

type MockInstancePrecheckerMockRecorder

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

MockInstancePrecheckerMockRecorder is the mock recorder for MockInstancePrechecker

func (*MockInstancePrecheckerMockRecorder) PrecheckInstance

func (mr *MockInstancePrecheckerMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call

PrecheckInstance indicates an expected call of PrecheckInstance

type MockInstanceTagger

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

MockInstanceTagger is a mock of InstanceTagger interface

func NewMockInstanceTagger

func NewMockInstanceTagger(ctrl *gomock.Controller) *MockInstanceTagger

NewMockInstanceTagger creates a new mock instance

func (*MockInstanceTagger) EXPECT

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

func (*MockInstanceTagger) TagInstance

func (m *MockInstanceTagger) TagInstance(arg0 context.ProviderCallContext, arg1 instance.Id, arg2 map[string]string) error

TagInstance mocks base method

type MockInstanceTaggerMockRecorder

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

MockInstanceTaggerMockRecorder is the mock recorder for MockInstanceTagger

func (*MockInstanceTaggerMockRecorder) TagInstance

func (mr *MockInstanceTaggerMockRecorder) TagInstance(arg0, arg1, arg2 interface{}) *gomock.Call

TagInstance indicates an expected call of TagInstance

type MockInstanceTypesFetcher

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

MockInstanceTypesFetcher is a mock of InstanceTypesFetcher interface

func NewMockInstanceTypesFetcher

func NewMockInstanceTypesFetcher(ctrl *gomock.Controller) *MockInstanceTypesFetcher

NewMockInstanceTypesFetcher creates a new mock instance

func (*MockInstanceTypesFetcher) EXPECT

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

func (*MockInstanceTypesFetcher) InstanceTypes

InstanceTypes mocks base method

type MockInstanceTypesFetcherMockRecorder

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

MockInstanceTypesFetcherMockRecorder is the mock recorder for MockInstanceTypesFetcher

func (*MockInstanceTypesFetcherMockRecorder) InstanceTypes

func (mr *MockInstanceTypesFetcherMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call

InstanceTypes indicates an expected call of InstanceTypes

type MockModelConfigUpgrader

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

MockModelConfigUpgrader is a mock of ModelConfigUpgrader interface

func NewMockModelConfigUpgrader

func NewMockModelConfigUpgrader(ctrl *gomock.Controller) *MockModelConfigUpgrader

NewMockModelConfigUpgrader creates a new mock instance

func (*MockModelConfigUpgrader) EXPECT

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

func (*MockModelConfigUpgrader) UpgradeConfig

func (m *MockModelConfigUpgrader) UpgradeConfig(arg0 *config.Config) (*config.Config, error)

UpgradeConfig mocks base method

type MockModelConfigUpgraderMockRecorder

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

MockModelConfigUpgraderMockRecorder is the mock recorder for MockModelConfigUpgrader

func (*MockModelConfigUpgraderMockRecorder) UpgradeConfig

func (mr *MockModelConfigUpgraderMockRecorder) UpgradeConfig(arg0 interface{}) *gomock.Call

UpgradeConfig indicates an expected call of UpgradeConfig

type MockNetworkingEnviron

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

MockNetworkingEnviron is a mock of NetworkingEnviron interface

func NewMockNetworkingEnviron

func NewMockNetworkingEnviron(ctrl *gomock.Controller) *MockNetworkingEnviron

NewMockNetworkingEnviron creates a new mock instance

func (*MockNetworkingEnviron) AdoptResources

func (m *MockNetworkingEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error

AdoptResources mocks base method

func (*MockNetworkingEnviron) AllInstances

AllInstances mocks base method

func (*MockNetworkingEnviron) AllRunningInstances

func (m *MockNetworkingEnviron) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllRunningInstances mocks base method

func (*MockNetworkingEnviron) AllocateContainerAddresses

AllocateContainerAddresses mocks base method

func (*MockNetworkingEnviron) AreSpacesRoutable

func (m *MockNetworkingEnviron) AreSpacesRoutable(arg0 context.ProviderCallContext, arg1, arg2 *environs.ProviderSpaceInfo) (bool, error)

AreSpacesRoutable mocks base method

func (*MockNetworkingEnviron) Bootstrap

Bootstrap mocks base method

func (*MockNetworkingEnviron) Config

func (m *MockNetworkingEnviron) Config() *config.Config

Config mocks base method

func (*MockNetworkingEnviron) ConstraintsValidator

ConstraintsValidator mocks base method

func (*MockNetworkingEnviron) ControllerInstances

func (m *MockNetworkingEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error)

ControllerInstances mocks base method

func (*MockNetworkingEnviron) Create

Create mocks base method

func (*MockNetworkingEnviron) Destroy

Destroy mocks base method

func (*MockNetworkingEnviron) DestroyController

func (m *MockNetworkingEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error

DestroyController mocks base method

func (*MockNetworkingEnviron) EXPECT

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

func (*MockNetworkingEnviron) InstanceTypes

InstanceTypes mocks base method

func (*MockNetworkingEnviron) Instances

Instances mocks base method

func (*MockNetworkingEnviron) NetworkInterfaces

func (m *MockNetworkingEnviron) NetworkInterfaces(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]network.InterfaceInfos, error)

NetworkInterfaces mocks base method

func (*MockNetworkingEnviron) PrecheckInstance

PrecheckInstance mocks base method

func (*MockNetworkingEnviron) PrepareForBootstrap

func (m *MockNetworkingEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error

PrepareForBootstrap mocks base method

func (*MockNetworkingEnviron) Provider

Provider mocks base method

func (*MockNetworkingEnviron) ProviderSpaceInfo

ProviderSpaceInfo mocks base method

func (*MockNetworkingEnviron) ReleaseContainerAddresses

func (m *MockNetworkingEnviron) ReleaseContainerAddresses(arg0 context.ProviderCallContext, arg1 []network.ProviderInterfaceInfo) error

ReleaseContainerAddresses mocks base method

func (*MockNetworkingEnviron) SSHAddresses

SSHAddresses mocks base method

func (*MockNetworkingEnviron) SetConfig

func (m *MockNetworkingEnviron) SetConfig(arg0 *config.Config) error

SetConfig mocks base method

func (*MockNetworkingEnviron) Spaces

Spaces mocks base method

func (*MockNetworkingEnviron) StartInstance

StartInstance mocks base method

func (*MockNetworkingEnviron) StopInstances

func (m *MockNetworkingEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error

StopInstances mocks base method

func (*MockNetworkingEnviron) StorageProvider

func (m *MockNetworkingEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)

StorageProvider mocks base method

func (*MockNetworkingEnviron) StorageProviderTypes

func (m *MockNetworkingEnviron) StorageProviderTypes() ([]storage.ProviderType, error)

StorageProviderTypes mocks base method

func (*MockNetworkingEnviron) Subnets

Subnets mocks base method

func (*MockNetworkingEnviron) SuperSubnets

func (m *MockNetworkingEnviron) SuperSubnets(arg0 context.ProviderCallContext) ([]string, error)

SuperSubnets mocks base method

func (*MockNetworkingEnviron) SupportsContainerAddresses

func (m *MockNetworkingEnviron) SupportsContainerAddresses(arg0 context.ProviderCallContext) (bool, error)

SupportsContainerAddresses mocks base method

func (*MockNetworkingEnviron) SupportsSpaceDiscovery

func (m *MockNetworkingEnviron) SupportsSpaceDiscovery(arg0 context.ProviderCallContext) (bool, error)

SupportsSpaceDiscovery mocks base method

func (*MockNetworkingEnviron) SupportsSpaces

func (m *MockNetworkingEnviron) SupportsSpaces(arg0 context.ProviderCallContext) (bool, error)

SupportsSpaces mocks base method

type MockNetworkingEnvironMockRecorder

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

MockNetworkingEnvironMockRecorder is the mock recorder for MockNetworkingEnviron

func (*MockNetworkingEnvironMockRecorder) AdoptResources

func (mr *MockNetworkingEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call

AdoptResources indicates an expected call of AdoptResources

func (*MockNetworkingEnvironMockRecorder) AllInstances

func (mr *MockNetworkingEnvironMockRecorder) AllInstances(arg0 interface{}) *gomock.Call

AllInstances indicates an expected call of AllInstances

func (*MockNetworkingEnvironMockRecorder) AllRunningInstances

func (mr *MockNetworkingEnvironMockRecorder) AllRunningInstances(arg0 interface{}) *gomock.Call

AllRunningInstances indicates an expected call of AllRunningInstances

func (*MockNetworkingEnvironMockRecorder) AllocateContainerAddresses

func (mr *MockNetworkingEnvironMockRecorder) AllocateContainerAddresses(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

AllocateContainerAddresses indicates an expected call of AllocateContainerAddresses

func (*MockNetworkingEnvironMockRecorder) AreSpacesRoutable

func (mr *MockNetworkingEnvironMockRecorder) AreSpacesRoutable(arg0, arg1, arg2 interface{}) *gomock.Call

AreSpacesRoutable indicates an expected call of AreSpacesRoutable

func (*MockNetworkingEnvironMockRecorder) Bootstrap

func (mr *MockNetworkingEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call

Bootstrap indicates an expected call of Bootstrap

func (*MockNetworkingEnvironMockRecorder) Config

Config indicates an expected call of Config

func (*MockNetworkingEnvironMockRecorder) ConstraintsValidator

func (mr *MockNetworkingEnvironMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call

ConstraintsValidator indicates an expected call of ConstraintsValidator

func (*MockNetworkingEnvironMockRecorder) ControllerInstances

func (mr *MockNetworkingEnvironMockRecorder) ControllerInstances(arg0, arg1 interface{}) *gomock.Call

ControllerInstances indicates an expected call of ControllerInstances

func (*MockNetworkingEnvironMockRecorder) Create

func (mr *MockNetworkingEnvironMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockNetworkingEnvironMockRecorder) Destroy

func (mr *MockNetworkingEnvironMockRecorder) Destroy(arg0 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy

func (*MockNetworkingEnvironMockRecorder) DestroyController

func (mr *MockNetworkingEnvironMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call

DestroyController indicates an expected call of DestroyController

func (*MockNetworkingEnvironMockRecorder) InstanceTypes

func (mr *MockNetworkingEnvironMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call

InstanceTypes indicates an expected call of InstanceTypes

func (*MockNetworkingEnvironMockRecorder) Instances

func (mr *MockNetworkingEnvironMockRecorder) Instances(arg0, arg1 interface{}) *gomock.Call

Instances indicates an expected call of Instances

func (*MockNetworkingEnvironMockRecorder) NetworkInterfaces

func (mr *MockNetworkingEnvironMockRecorder) NetworkInterfaces(arg0, arg1 interface{}) *gomock.Call

NetworkInterfaces indicates an expected call of NetworkInterfaces

func (*MockNetworkingEnvironMockRecorder) PrecheckInstance

func (mr *MockNetworkingEnvironMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call

PrecheckInstance indicates an expected call of PrecheckInstance

func (*MockNetworkingEnvironMockRecorder) PrepareForBootstrap

func (mr *MockNetworkingEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 interface{}) *gomock.Call

PrepareForBootstrap indicates an expected call of PrepareForBootstrap

func (*MockNetworkingEnvironMockRecorder) Provider

Provider indicates an expected call of Provider

func (*MockNetworkingEnvironMockRecorder) ProviderSpaceInfo

func (mr *MockNetworkingEnvironMockRecorder) ProviderSpaceInfo(arg0, arg1 interface{}) *gomock.Call

ProviderSpaceInfo indicates an expected call of ProviderSpaceInfo

func (*MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses

func (mr *MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses(arg0, arg1 interface{}) *gomock.Call

ReleaseContainerAddresses indicates an expected call of ReleaseContainerAddresses

func (*MockNetworkingEnvironMockRecorder) SSHAddresses

func (mr *MockNetworkingEnvironMockRecorder) SSHAddresses(arg0, arg1 interface{}) *gomock.Call

SSHAddresses indicates an expected call of SSHAddresses

func (*MockNetworkingEnvironMockRecorder) SetConfig

func (mr *MockNetworkingEnvironMockRecorder) SetConfig(arg0 interface{}) *gomock.Call

SetConfig indicates an expected call of SetConfig

func (*MockNetworkingEnvironMockRecorder) Spaces

func (mr *MockNetworkingEnvironMockRecorder) Spaces(arg0 interface{}) *gomock.Call

Spaces indicates an expected call of Spaces

func (*MockNetworkingEnvironMockRecorder) StartInstance

func (mr *MockNetworkingEnvironMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call

StartInstance indicates an expected call of StartInstance

func (*MockNetworkingEnvironMockRecorder) StopInstances

func (mr *MockNetworkingEnvironMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call

StopInstances indicates an expected call of StopInstances

func (*MockNetworkingEnvironMockRecorder) StorageProvider

func (mr *MockNetworkingEnvironMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call

StorageProvider indicates an expected call of StorageProvider

func (*MockNetworkingEnvironMockRecorder) StorageProviderTypes

func (mr *MockNetworkingEnvironMockRecorder) StorageProviderTypes() *gomock.Call

StorageProviderTypes indicates an expected call of StorageProviderTypes

func (*MockNetworkingEnvironMockRecorder) Subnets

func (mr *MockNetworkingEnvironMockRecorder) Subnets(arg0, arg1, arg2 interface{}) *gomock.Call

Subnets indicates an expected call of Subnets

func (*MockNetworkingEnvironMockRecorder) SuperSubnets

func (mr *MockNetworkingEnvironMockRecorder) SuperSubnets(arg0 interface{}) *gomock.Call

SuperSubnets indicates an expected call of SuperSubnets

func (*MockNetworkingEnvironMockRecorder) SupportsContainerAddresses

func (mr *MockNetworkingEnvironMockRecorder) SupportsContainerAddresses(arg0 interface{}) *gomock.Call

SupportsContainerAddresses indicates an expected call of SupportsContainerAddresses

func (*MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery

func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery(arg0 interface{}) *gomock.Call

SupportsSpaceDiscovery indicates an expected call of SupportsSpaceDiscovery

func (*MockNetworkingEnvironMockRecorder) SupportsSpaces

func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaces(arg0 interface{}) *gomock.Call

SupportsSpaces indicates an expected call of SupportsSpaces

type MockProviderCredentials

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

MockProviderCredentials is a mock of ProviderCredentials interface

func NewMockProviderCredentials

func NewMockProviderCredentials(ctrl *gomock.Controller) *MockProviderCredentials

NewMockProviderCredentials creates a new mock instance

func (*MockProviderCredentials) CredentialSchemas

func (m *MockProviderCredentials) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema

CredentialSchemas mocks base method

func (*MockProviderCredentials) DetectCredentials

func (m *MockProviderCredentials) DetectCredentials() (*cloud.CloudCredential, error)

DetectCredentials mocks base method

func (*MockProviderCredentials) EXPECT

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

func (*MockProviderCredentials) FinalizeCredential

FinalizeCredential mocks base method

type MockProviderCredentialsMockRecorder

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

MockProviderCredentialsMockRecorder is the mock recorder for MockProviderCredentials

func (*MockProviderCredentialsMockRecorder) CredentialSchemas

func (mr *MockProviderCredentialsMockRecorder) CredentialSchemas() *gomock.Call

CredentialSchemas indicates an expected call of CredentialSchemas

func (*MockProviderCredentialsMockRecorder) DetectCredentials

func (mr *MockProviderCredentialsMockRecorder) DetectCredentials() *gomock.Call

DetectCredentials indicates an expected call of DetectCredentials

func (*MockProviderCredentialsMockRecorder) FinalizeCredential

func (mr *MockProviderCredentialsMockRecorder) FinalizeCredential(arg0, arg1 interface{}) *gomock.Call

FinalizeCredential indicates an expected call of FinalizeCredential

type MockProviderCredentialsRegister

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

MockProviderCredentialsRegister is a mock of ProviderCredentialsRegister interface

func NewMockProviderCredentialsRegister

func NewMockProviderCredentialsRegister(ctrl *gomock.Controller) *MockProviderCredentialsRegister

NewMockProviderCredentialsRegister creates a new mock instance

func (*MockProviderCredentialsRegister) EXPECT

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

func (*MockProviderCredentialsRegister) RegisterCredentials

func (m *MockProviderCredentialsRegister) RegisterCredentials(arg0 cloud.Cloud) (map[string]*cloud.CloudCredential, error)

RegisterCredentials mocks base method

type MockProviderCredentialsRegisterMockRecorder

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

MockProviderCredentialsRegisterMockRecorder is the mock recorder for MockProviderCredentialsRegister

func (*MockProviderCredentialsRegisterMockRecorder) RegisterCredentials

func (mr *MockProviderCredentialsRegisterMockRecorder) RegisterCredentials(arg0 interface{}) *gomock.Call

RegisterCredentials indicates an expected call of RegisterCredentials

type MockProviderSchema

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

MockProviderSchema is a mock of ProviderSchema interface

func NewMockProviderSchema

func NewMockProviderSchema(ctrl *gomock.Controller) *MockProviderSchema

NewMockProviderSchema creates a new mock instance

func (*MockProviderSchema) EXPECT

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

func (*MockProviderSchema) Schema

Schema mocks base method

type MockProviderSchemaMockRecorder

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

MockProviderSchemaMockRecorder is the mock recorder for MockProviderSchema

func (*MockProviderSchemaMockRecorder) Schema

Schema indicates an expected call of Schema

type MockRequestFinalizeCredential

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

MockRequestFinalizeCredential is a mock of RequestFinalizeCredential interface

func NewMockRequestFinalizeCredential

func NewMockRequestFinalizeCredential(ctrl *gomock.Controller) *MockRequestFinalizeCredential

NewMockRequestFinalizeCredential creates a new mock instance

func (*MockRequestFinalizeCredential) EXPECT

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

func (*MockRequestFinalizeCredential) ShouldFinalizeCredential

func (m *MockRequestFinalizeCredential) ShouldFinalizeCredential(arg0 cloud.Credential) bool

ShouldFinalizeCredential mocks base method

type MockRequestFinalizeCredentialMockRecorder

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

MockRequestFinalizeCredentialMockRecorder is the mock recorder for MockRequestFinalizeCredential

func (*MockRequestFinalizeCredentialMockRecorder) ShouldFinalizeCredential

func (mr *MockRequestFinalizeCredentialMockRecorder) ShouldFinalizeCredential(arg0 interface{}) *gomock.Call

ShouldFinalizeCredential indicates an expected call of ShouldFinalizeCredential

type MockUpgradeStep

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

MockUpgradeStep is a mock of UpgradeStep interface

func NewMockUpgradeStep

func NewMockUpgradeStep(ctrl *gomock.Controller) *MockUpgradeStep

NewMockUpgradeStep creates a new mock instance

func (*MockUpgradeStep) Description

func (m *MockUpgradeStep) Description() string

Description mocks base method

func (*MockUpgradeStep) EXPECT

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

func (*MockUpgradeStep) Run

Run mocks base method

type MockUpgradeStepMockRecorder

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

MockUpgradeStepMockRecorder is the mock recorder for MockUpgradeStep

func (*MockUpgradeStepMockRecorder) Description

func (mr *MockUpgradeStepMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description

func (*MockUpgradeStepMockRecorder) Run

func (mr *MockUpgradeStepMockRecorder) Run(arg0 interface{}) *gomock.Call

Run indicates an expected call of Run

type MockUpgrader

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

MockUpgrader is a mock of Upgrader interface

func NewMockUpgrader

func NewMockUpgrader(ctrl *gomock.Controller) *MockUpgrader

NewMockUpgrader creates a new mock instance

func (*MockUpgrader) EXPECT

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

func (*MockUpgrader) UpgradeOperations

UpgradeOperations mocks base method

type MockUpgraderMockRecorder

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

MockUpgraderMockRecorder is the mock recorder for MockUpgrader

func (*MockUpgraderMockRecorder) UpgradeOperations

func (mr *MockUpgraderMockRecorder) UpgradeOperations(arg0, arg1 interface{}) *gomock.Call

UpgradeOperations indicates an expected call of UpgradeOperations

type ToolsFixture

type ToolsFixture struct {
	DefaultBaseURL string

	// UploadArches holds the architectures of tools to
	// upload in UploadFakeTools. If empty, it will default
	// to just arch.HostArch()
	UploadArches []string
	// contains filtered or unexported fields
}

ToolsFixture is used as a fixture to stub out the default tools URL so we don't hit the real internet during tests.

func (*ToolsFixture) SetUpTest

func (s *ToolsFixture) SetUpTest(c *gc.C)

func (*ToolsFixture) TearDownTest

func (s *ToolsFixture) TearDownTest(c *gc.C)

func (*ToolsFixture) UploadFakeTools

func (s *ToolsFixture) UploadFakeTools(c *gc.C, stor storage.Storage, toolsDir, stream string)

UploadFakeTools uploads fake tools of the architectures in s.UploadArches for each LTS release to the specified storage.

func (*ToolsFixture) UploadFakeToolsToDirectory

func (s *ToolsFixture) UploadFakeToolsToDirectory(c *gc.C, dir, toolsDir, stream string)

UploadFakeToolsToDirectory uploads fake tools of the architectures in s.UploadArches for each LTS release to the specified directory.