juju: github.com/juju/juju/environs/imagemetadata/testing Index | Files

package testing

import "github.com/juju/juju/environs/imagemetadata/testing"

Index

Package Files

testing.go

func ParseIndexMetadataFromStorage Uses

func ParseIndexMetadataFromStorage(c *gc.C, stor storage.StorageReader) (*simplestreams.IndexMetadata, simplestreams.DataSource)

ParseIndexMetadataFromStorage loads Indices from the specified storage reader.

func ParseMetadataFromDir Uses

func ParseMetadataFromDir(c *gc.C, metadataDir string) []*imagemetadata.ImageMetadata

ParseMetadataFromDir loads ImageMetadata from the specified directory.

func ParseMetadataFromStorage Uses

func ParseMetadataFromStorage(c *gc.C, stor storage.StorageReader) []*imagemetadata.ImageMetadata

ParseMetadataFromStorage loads ImageMetadata from the specified storage reader.

func PatchOfficialDataSources Uses

func PatchOfficialDataSources(s *testing.CleanupSuite, url string)

PatchOfficialDataSources is used by tests. We replace one of the urls with the supplied value and prevent the other from being used.

Package testing imports 12 packages (graph). Updated 2018-05-21. Refresh now. Tools for package owners.