func (s *providerSuite) SetUpSuite(c *gc.C) { s.FakeJujuXDGDataHomeSuite.SetUpSuite(c) restoreTimeouts := envtesting.PatchAttemptStrategies(&shortAttempt) TestMAASObject := gomaasapi.NewTestMAAS("1.0") s.testMAASObject = TestMAASObject restoreFinishBootstrap := envtesting.DisableFinishBootstrap() s.AddSuiteCleanup(func(*gc.C) { restoreFinishBootstrap() restoreTimeouts() }) s.PatchValue(&nodeDeploymentTimeout, func(*maasEnviron) time.Duration { return coretesting.ShortWait }) s.PatchValue(&resolveHostnames, func(addrs []network.Address) []network.Address { return addrs }) }
// TDOO: jam 2013-12-06 This is copied from the providerSuite which is in a // whitebox package maas. Either move that into a whitebox test so it can be // shared, or into a 'testing' package so we can use it here. func (s *environSuite) SetUpSuite(c *gc.C) { s.restoreTimeouts = envtesting.PatchAttemptStrategies(maas.ShortAttempt) s.BaseSuite.SetUpSuite(c) TestMAASObject := gomaasapi.NewTestMAAS("1.0") s.testMAASObject = TestMAASObject }
func (s *providerSuite) SetUpSuite(c *gc.C) { s.baseProviderSuite.SetUpSuite(c) s.testMAASObject = gomaasapi.NewTestMAAS("1.0") }