github.com/cloudbase/juju-core@v0.0.0-20140504232958-a7271ac7912f/provider/azure/azure_test.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package azure 5 6 import ( 7 stdtesting "testing" 8 9 gc "launchpad.net/gocheck" 10 11 envtesting "launchpad.net/juju-core/environs/testing" 12 "launchpad.net/juju-core/testing/testbase" 13 ) 14 15 func TestAzureProvider(t *stdtesting.T) { 16 gc.TestingT(t) 17 } 18 19 type providerSuite struct { 20 testbase.LoggingSuite 21 envtesting.ToolsFixture 22 restoreTimeouts func() 23 } 24 25 var _ = gc.Suite(&providerSuite{}) 26 27 func (s *providerSuite) SetUpSuite(c *gc.C) { 28 s.LoggingSuite.SetUpSuite(c) 29 s.restoreTimeouts = envtesting.PatchAttemptStrategies() 30 } 31 32 func (s *providerSuite) TearDownSuite(c *gc.C) { 33 s.restoreTimeouts() 34 s.LoggingSuite.TearDownSuite(c) 35 } 36 37 func (s *providerSuite) SetUpTest(c *gc.C) { 38 s.LoggingSuite.SetUpTest(c) 39 s.ToolsFixture.SetUpTest(c) 40 } 41 42 func (s *providerSuite) TearDownTest(c *gc.C) { 43 s.ToolsFixture.TearDownTest(c) 44 s.LoggingSuite.TearDownTest(c) 45 }