func (s *clientSuite) SetUpSuite(c *gc.C) { s.BaseSuite.SetUpSuite(c) mock.Start() s.AddCleanup(func(*gc.C) { mock.Stop() }) }
func (s *environInstanceSuite) SetUpSuite(c *gc.C) { s.BaseSuite.SetUpSuite(c) mock.Start() attrs := testing.Attrs{ "name": "testname", "uuid": "f54aac3a-9dcd-4a0c-86b5-24091478478c", "region": mock.Endpoint(""), "username": mock.TestUser, "password": mock.TestPassword, } s.baseConfig = newConfig(c, validAttrs().Merge(attrs)) }
func (s *environInstanceSuite) SetUpSuite(c *gc.C) { s.BaseSuite.SetUpSuite(c) mock.Start() s.cloud = fakeCloudSpec() s.cloud.Endpoint = mock.Endpoint("") attrs := testing.Attrs{ "name": "testname", "uuid": "f54aac3a-9dcd-4a0c-86b5-24091478478c", } s.baseConfig = newConfig(c, validAttrs().Merge(attrs)) }
func (s *clientSuite) SetUpSuite(c *gc.C) { s.BaseSuite.SetUpSuite(c) mock.Start() }
func (s *instanceSuite) SetUpSuite(c *gc.C) { s.BaseSuite.SetUpSuite(c) mock.Start() }