import "github.com/juju/juju/environs/tools/testing"
func GetMockBuildTools(c *gc.C) sync.BuildAgentTarballFunc
GetMockBuildTools returns a sync.BuildAgentTarballFunc implementation which generates a fake tools tarball.
MakeTools creates some fake tools with the given version strings.
func MakeToolsWithCheckSum(c *gc.C, metadataDir, stream string, versionStrings []string) coretools.List
MakeToolsWithCheckSum creates some fake tools (including checksums) with the given version strings.
func ParseMetadataFromDir(c *gc.C, metadataDir, stream string, expectMirrors bool) []*tools.ToolsMetadata
ParseMetadataFromDir loads ToolsMetadata from the specified directory.
func ParseMetadataFromStorage(c *gc.C, stor storage.StorageReader, stream string, expectMirrors bool) []*tools.ToolsMetadata
ParseMetadataFromStorage loads ToolsMetadata from the specified storage reader.
SHA256sum creates the sha256 checksum for the specified file.
func UploadToDirectory(c *gc.C, dir string, streamVersions StreamVersions) map[string]map[version.Binary]string
UploadToDirectory uploads tools and metadata for the specified versions to dir.
func UploadToStorage(c *gc.C, stor storage.Storage, stream string, versions ...version.Binary) map[version.Binary]string
UploadToStorage uploads tools and metadata for the specified versions to storage.
StreamVersions is a map of stream name to binaries in that stream.
Package testing imports 29 packages (graph) and is imported by 38 packages. Updated 2018-06-29. Refresh now. Tools for package owners.