Esempio n. 1
0
func (s *UpgradeCharmErrorsSuite) SetUpTest(c *gc.C) {
	s.RepoSuite.SetUpTest(c)
	mockstore := charmtesting.NewMockStore(c, map[string]int{})
	s.AddCleanup(func(*gc.C) { mockstore.Close() })
	s.PatchValue(&charm.Store, &charm.CharmStore{
		BaseURL: mockstore.Address(),
	})
}
Esempio n. 2
0
File: suite.go Progetto: zhouqt/juju
func (s *CharmSuite) SetUpSuite(c *gc.C, jcSuite *jujutesting.JujuConnSuite) {
	s.jcSuite = jcSuite
	s.Server = charmtesting.NewMockStore(c, map[string]int{
		"cs:quantal/mysql":     23,
		"cs:quantal/dummy":     24,
		"cs:quantal/riak":      25,
		"cs:quantal/wordpress": 26,
		"cs:quantal/logging":   27,
		"cs:quantal/borken":    28,
	})
}