Documentation ¶
Index ¶
- func CreateLocalTestStorage(c *gc.C) (closer io.Closer, storage environs.Storage, dataDir string)
- func MustUploadFakeTools(storage environs.Storage)
- func MustUploadFakeToolsVersion(storage environs.Storage, vers version.Binary) *state.Tools
- func RemoveAllTools(c *C, env environs.Environ)
- func RemoveFakeTools(c *C, storage environs.Storage)
- func RemoveTools(c *C, storage environs.Storage)
- func UploadFakeTools(c *C, storage environs.Storage)
- func UploadFakeToolsVersion(c *C, storage environs.Storage, vers version.Binary) *state.Tools
- type EC2HTTPTestStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLocalTestStorage ¶
CreateLocalTestStorage returns the listener, which needs to be closed, and the storage that is backed by a directory created in the running tests temp directory.
func MustUploadFakeTools ¶
MustUploadFakeTools acts as UploadFakeTools, but panics on failure.
func MustUploadFakeToolsVersion ¶
MustUploadFakeToolsVersion acts as UploadFakeToolsVersion, but panics on failure.
func RemoveAllTools ¶
RemoveAllTools deletes all tools from the supplied environment.
func RemoveFakeTools ¶
RemoveFakeTools deletes the fake tools from the supplied storage.
func RemoveTools ¶
RemoveTools deletes all tools from the supplied storage.
func UploadFakeTools ¶
UploadFakeTools puts fake tools into the supplied storage with a binary version matching version.Current; if version.Current's series is different to config.DefaultSeries, matching fake tools will be uploaded for that series. This is useful for tests that are kinda casual about specifying their environment.
Types ¶
type EC2HTTPTestStorage ¶
type EC2HTTPTestStorage struct {
// contains filtered or unexported fields
}
EC2HTTPTestStorage acts like an EC2 storage which can be accessed by HTTP.
func NewEC2HTTPTestStorage ¶
func NewEC2HTTPTestStorage(ip string) (*EC2HTTPTestStorage, error)
NewEC2HTTPTestStorage creates a storage server for tests with the HTTPStorageReader.
func (*EC2HTTPTestStorage) Location ¶
func (s *EC2HTTPTestStorage) Location() string
Location returns the location that has to be used in the tests.
func (*EC2HTTPTestStorage) PutBinary ¶
func (s *EC2HTTPTestStorage) PutBinary(v version.Binary)
PutBinary stores a faked binary in the HTTP test storage.
func (*EC2HTTPTestStorage) Stop ¶
func (s *EC2HTTPTestStorage) Stop() error
Stop stops the HTTP test storage.