juju: github.com/mattyw/juju/environs/simplestreams/testing Index | Files

package testing

import "github.com/mattyw/juju/environs/simplestreams/testing"

Index

Package Files

testing.go

Constants

const (
    Index_v1   = "index:1.0"
    Product_v1 = "products:1.0"
    Mirror_v1  = "mirrors:1.0"
)

Variables

var PrivateKeyPassphrase = "12345"
var SignedMetadataPrivateKey = "" /* 1111 byte string literal not displayed */
var SignedMetadataPublicKey = "" /* 608 byte string literal not displayed */

func AssertExpectedSources Uses

func AssertExpectedSources(c *gc.C, obtained []simplestreams.DataSource, baseURLs []string)

func NewTestConstraint Uses

func NewTestConstraint(params simplestreams.LookupParams) *testConstraint

type LocalLiveSimplestreamsSuite Uses

type LocalLiveSimplestreamsSuite struct {
    testing.BaseSuite
    Source          simplestreams.DataSource
    RequireSigned   bool
    DataType        string
    ValidConstraint simplestreams.LookupConstraint
}

func (*LocalLiveSimplestreamsSuite) AssertGetItemCollections Uses

func (s *LocalLiveSimplestreamsSuite) AssertGetItemCollections(c *gc.C, version string) *simplestreams.ItemCollection

func (*LocalLiveSimplestreamsSuite) AssertGetMetadata Uses

func (s *LocalLiveSimplestreamsSuite) AssertGetMetadata(c *gc.C) *simplestreams.CloudMetadata

func (*LocalLiveSimplestreamsSuite) GetIndexRef Uses

func (s *LocalLiveSimplestreamsSuite) GetIndexRef(format string) (*simplestreams.IndexReference, error)

func (*LocalLiveSimplestreamsSuite) IndexPath Uses

func (s *LocalLiveSimplestreamsSuite) IndexPath() string

func (*LocalLiveSimplestreamsSuite) SetUpSuite Uses

func (s *LocalLiveSimplestreamsSuite) SetUpSuite(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TearDownSuite Uses

func (s *LocalLiveSimplestreamsSuite) TearDownSuite(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TestGetCloudMetadataWithFormat Uses

func (s *LocalLiveSimplestreamsSuite) TestGetCloudMetadataWithFormat(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TestGetIndex Uses

func (s *LocalLiveSimplestreamsSuite) TestGetIndex(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TestGetIndexWrongFormat Uses

func (s *LocalLiveSimplestreamsSuite) TestGetIndexWrongFormat(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TestGetProductsPathExists Uses

func (s *LocalLiveSimplestreamsSuite) TestGetProductsPathExists(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TestGetProductsPathInvalidCloudSpec Uses

func (s *LocalLiveSimplestreamsSuite) TestGetProductsPathInvalidCloudSpec(c *gc.C)

func (*LocalLiveSimplestreamsSuite) TestGetProductsPathInvalidProductSpec Uses

func (s *LocalLiveSimplestreamsSuite) TestGetProductsPathInvalidProductSpec(c *gc.C)

type TestDataSuite Uses

type TestDataSuite struct{}

func (*TestDataSuite) SetUpSuite Uses

func (s *TestDataSuite) SetUpSuite(c *gc.C)

func (*TestDataSuite) TearDownSuite Uses

func (s *TestDataSuite) TearDownSuite(c *gc.C)

type TestItem Uses

type TestItem struct {
    Id          string `json:"id"`
    Storage     string `json:"root_store"`
    VirtType    string `json:"virt"`
    Arch        string `json:"arch"`
    RegionAlias string `json:"crsn"`
    RegionName  string `json:"region"`
    Endpoint    string `json:"endpoint"`
}

Package testing imports 7 packages (graph). Updated 2016-07-25. Refresh now. Tools for package owners.