testing

package
v0.0.0-...-732aecd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2014 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var PrivateKeyPassphrase = "12345"
View Source
var SignedMetadataPrivateKey = `` /* 1109-byte string literal not displayed */
View Source
var SignedMetadataPublicKey = `` /* 606-byte string literal not displayed */

Functions

func AssertExpectedSources

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

func NewTestConstraint

func NewTestConstraint(params simplestreams.LookupParams) *testConstraint

Types

type LocalLiveSimplestreamsSuite

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

func (*LocalLiveSimplestreamsSuite) AssertGetItemCollections

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

func (*LocalLiveSimplestreamsSuite) AssertGetMetadata

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

func (*LocalLiveSimplestreamsSuite) GetIndexRef

func (*LocalLiveSimplestreamsSuite) IndexPath

func (s *LocalLiveSimplestreamsSuite) IndexPath() string

func (*LocalLiveSimplestreamsSuite) SetUpSuite

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

func (*LocalLiveSimplestreamsSuite) TearDownSuite

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

func (*LocalLiveSimplestreamsSuite) TestGetCloudMetadataWithFormat

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

func (*LocalLiveSimplestreamsSuite) TestGetIndex

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

func (*LocalLiveSimplestreamsSuite) TestGetIndexWrongFormat

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

func (*LocalLiveSimplestreamsSuite) TestGetProductsPathExists

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

func (*LocalLiveSimplestreamsSuite) TestGetProductsPathInvalidCloudSpec

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

func (*LocalLiveSimplestreamsSuite) TestGetProductsPathInvalidProductSpec

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

type TestDataSuite

type TestDataSuite struct{}

func (*TestDataSuite) SetUpSuite

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

func (*TestDataSuite) TearDownSuite

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

type TestItem

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL