Documentation
¶
Index ¶
- Constants
- type Tests
- func (t *Tests) AssertPrepareFailsWithConfig(c *gc.C, badConfig coretesting.Attrs, errorMatches string) error
- func (t *Tests) CloudSpec() environscloudspec.CloudSpec
- func (t *Tests) Open(c *gc.C, ctx context.Context, cfg *config.Config) environs.Environ
- func (t *Tests) Prepare(c *gc.C) environs.Environ
- func (t *Tests) PrepareParams(c *gc.C) bootstrap.PrepareParams
- func (t *Tests) PrepareWithParams(c *gc.C, params bootstrap.PrepareParams) environs.Environ
- func (t *Tests) SetUpTest(c *gc.C)
- func (t *Tests) TearDownTest(c *gc.C)
- func (t *Tests) TestBootstrap(c *gc.C)
- func (t *Tests) TestStartStop(c *gc.C)
Constants ¶
View Source
const (
AdminSecret = "admin-secret"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tests ¶
type Tests struct { TestConfig coretesting.Attrs Credential cloud.Credential CloudEndpoint string CloudRegion string ControllerUUID string Env environs.Environ envtesting.ToolsFixture sstesting.TestDataSuite // ControllerStore holds the controller related information // such as controllers, accounts, etc., used when preparing // the environment. This is initialized by SetUpSuite. ControllerStore jujuclient.ClientStore // ProviderCallContext holds the context to be used to make // calls to a cloud provider. ProviderCallContext envcontext.ProviderCallContext // BootstrapContext holds the context to bootstrap a test environment. BootstrapContext environs.BootstrapContext // contains filtered or unexported fields }
Tests is a gocheck suite containing tests verifying juju functionality against the environment with the given configuration. The tests are not designed to be run against a live server - the Environ is opened once for each test, and some potentially expensive operations may be executed.
func (*Tests) AssertPrepareFailsWithConfig ¶
func (*Tests) CloudSpec ¶
func (t *Tests) CloudSpec() environscloudspec.CloudSpec
func (*Tests) PrepareParams ¶
func (t *Tests) PrepareParams(c *gc.C) bootstrap.PrepareParams
PrepareParams returns the environs.PrepareParams that will be used to call environs.Prepare.
func (*Tests) PrepareWithParams ¶
PrepareWithParams prepares an instance of the testing environment.
func (*Tests) TearDownTest ¶
func (*Tests) TestBootstrap ¶
func (*Tests) TestStartStop ¶
Click to show internal directories.
Click to hide internal directories.