Documentation ¶
Overview ¶
Package testcharms holds a corpus of charms for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Hub = repo.NewRepo(localCharmHub, defaultSeries)
Hub provides access to the test charmhub repository.
var Repo = repo.NewRepo(localCharmRepo, defaultSeries)
Repo provides access to the test charm repository.
Functions ¶
func CheckCharmReady ¶
func CheckCharmReady(c *gc.C, charmArchive *charm.CharmArchive)
CheckCharmReady ensures that a desired charm archive exists and has some content.
func InjectFilesToCharmArchive ¶
InjectFilesToCharmArchive overwrites the contents of pathToArchive with a new archive containing the original files plus the ones provided in the fileContents map (key: file name, value: file contents).
func RepoForSeries ¶
RepoForSeries returns a new charm repository for the specified series. Note: this is a bit weird, as it ignores the series if it's NOT kubernetes and falls back to the default series, which makes this pretty pointless.
func RepoWithSeries ¶
RepoWithSeries returns a new charm repository for the specified series.
Types ¶
This section is empty.