Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Penhey committed Sep 20, 2013
1 parent 2eace84 commit ad99925
Show file tree
Hide file tree
Showing 50 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion charm/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (s *StoreSuite) SetUpTest(c *gc.C) {
s.server.downloads = nil
}

// Uses the TearDownTest from testing.LoggingSuite
// Uses the TearDownTest from testbase.LoggingSuite

func (s *StoreSuite) TearDownSuite(c *gc.C) {
charm.CacheDir = s.oldCacheDir
Expand Down
2 changes: 1 addition & 1 deletion downloader/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

type suite struct {
testing.LoggingSuite
testbase.LoggingSuite
testing.HTTPSuite
}

Expand Down
2 changes: 1 addition & 1 deletion environs/simplestreams/testing/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func AssertExpectedSources(c *gc.C, obtained []simplestreams.DataSource, baseURL
}

type LocalLiveSimplestreamsSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
Source simplestreams.DataSource
RequireSigned bool
DataType string
Expand Down
2 changes: 1 addition & 1 deletion environs/sshstorage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

type storageSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
restoreEnv func()
}

Expand Down
4 changes: 2 additions & 2 deletions environs/sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestPackage(t *testing.T) {
}

type syncSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
envtesting.ToolsFixture
home *coretesting.FakeHome
targetEnv environs.Environ
Expand Down Expand Up @@ -241,7 +241,7 @@ func assertToolsList(c *gc.C, list coretools.List, expected []version.Binary) {

type uploadSuite struct {
env environs.Environ
coretesting.LoggingSuite
coretestbase.LoggingSuite
envtesting.ToolsFixture
}

Expand Down
2 changes: 1 addition & 1 deletion environs/tools/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

type buildSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
restore func()
cwd string
filePath string
Expand Down
2 changes: 1 addition & 1 deletion environs/tools/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

type StorageSuite struct {
env environs.Environ
testing.LoggingSuite
testbase.LoggingSuite
dataDir string
}

Expand Down
2 changes: 1 addition & 1 deletion environs/tools/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type toolsTestHelper interface {
type ToolsSuite struct {
toolsTestHelper
env environs.Environ
testing.LoggingSuite
testbase.LoggingSuite
envtesting.ToolsFixture
origCurrentVersion version.Binary
}
Expand Down
2 changes: 1 addition & 1 deletion environs/tools/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

type ValidateSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
home *coretesting.FakeHome
}

Expand Down
2 changes: 1 addition & 1 deletion instance/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

type AddressSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&AddressSuite{})
Expand Down
4 changes: 2 additions & 2 deletions juju/apiconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

type NewAPIConnSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
envtesting.ToolsFixture
}

Expand Down Expand Up @@ -58,7 +58,7 @@ func (*NewAPIConnSuite) TestNewConn(c *gc.C) {
}

type NewAPIClientSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
}

var _ = gc.Suite(&NewAPIClientSuite{})
Expand Down
4 changes: 2 additions & 2 deletions juju/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Test(t *stdtesting.T) {
}

type NewConnSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
envtesting.ToolsFixture
}

Expand Down Expand Up @@ -222,7 +222,7 @@ func (cs *NewConnSuite) TestConnWithPassword(c *gc.C) {
}

type ConnSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
coretesting.MgoSuite
envtesting.ToolsFixture
conn *juju.Conn
Expand Down
4 changes: 2 additions & 2 deletions juju/testing/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
)

// JujuConnSuite provides a freshly bootstrapped juju.Conn
// for each test. It also includes testing.LoggingSuite.
// for each test. It also includes testbase.LoggingSuite.
//
// It also sets up RootDir to point to a directory hierarchy
// mirroring the intended juju directory structure, including
Expand All @@ -50,7 +50,7 @@ type JujuConnSuite struct {
// /var/lib/juju: the use cases are completely non-overlapping, and any tests that
// really do need both to exist ought to be embedding distinct fixtures for the
// distinct environments.
testing.LoggingSuite
testbase.LoggingSuite
testing.MgoSuite
envtesting.ToolsFixture
Conn *juju.Conn
Expand Down
2 changes: 1 addition & 1 deletion provider/azure/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestAzureProvider(t *stdtesting.T) {
}

type providerSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
envtesting.ToolsFixture
restoreTimeouts func()
}
Expand Down
2 changes: 1 addition & 1 deletion provider/azure/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

type configSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&configSuite{})
Expand Down
2 changes: 1 addition & 1 deletion provider/azure/customdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

type customDataSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&customDataSuite{})
Expand Down
2 changes: 1 addition & 1 deletion provider/ec2/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// Use local suite since this file lives in the ec2 package
// for testing internals.
type ConfigSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
savedHome, savedAccessKey, savedSecretKey string
}

Expand Down
4 changes: 2 additions & 2 deletions provider/ec2/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

type imageSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&imageSuite{})
Expand All @@ -30,7 +30,7 @@ func (s *imageSuite) TearDownSuite(c *gc.C) {
}

type specSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&specSuite{})
Expand Down
2 changes: 1 addition & 1 deletion provider/ec2/live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func registerAmazonTests() {
// LiveTests contains tests that can be run against the Amazon servers.
// Each test runs using the same ec2 connection.
type LiveTests struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
jujutest.LiveTests
writablePublicStorage storage.Storage
}
Expand Down
2 changes: 1 addition & 1 deletion provider/ec2/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (t *localServerSuite) TestGetToolsMetadataSources(c *gc.C) {
// localNonUSEastSuite is similar to localServerSuite but the S3 mock server
// behaves as if it is not in the us-east region.
type localNonUSEastSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
restoreEC2Patching func()
srv localServer
env environs.Environ
Expand Down
2 changes: 1 addition & 1 deletion provider/local/environprovider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

type baseProviderSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
lxc.TestSuite
home *testing.FakeHome
restore func()
Expand Down
2 changes: 1 addition & 1 deletion provider/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestLocal(t *stdtesting.T) {
}

type localSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&localSuite{})
Expand Down
2 changes: 1 addition & 1 deletion provider/local/prereqs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

type prereqsSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
tmpdir string
oldpath string
}
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

type configSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&configSuite{})
Expand Down
2 changes: 1 addition & 1 deletion provider/maas/maas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestMAAS(t *stdtesting.T) {
}

type providerSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
envtesting.ToolsFixture
environ *maasEnviron
testMAASObject *gomaasapi.TestMAASObject
Expand Down
2 changes: 1 addition & 1 deletion provider/openstack/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

type ConfigSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
savedVars map[string]string
oldJujuHome *testing.FakeHome
}
Expand Down
2 changes: 1 addition & 1 deletion provider/openstack/live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func registerLiveTests(cred *identity.Credentials) {
// The deployment can be a real live instance or service doubles.
// Each test runs using the same connection.
type LiveTests struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
jujutest.LiveTests
cred *identity.Credentials
writeablePublicStorage storage.Storage
Expand Down
4 changes: 2 additions & 2 deletions provider/openstack/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (s *localServer) stop() {

// localLiveSuite runs tests from LiveTests using an Openstack service double.
type localLiveSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
LiveTests
srv localServer
}
Expand Down Expand Up @@ -184,7 +184,7 @@ func (s *localLiveSuite) TearDownTest(c *gc.C) {
// to test on a live Openstack server. The service double is started and stopped for
// each test.
type localServerSuite struct {
coretesting.LoggingSuite
coretestbase.LoggingSuite
jujutest.Tests
cred *identity.Credentials
srv localServer
Expand Down
2 changes: 1 addition & 1 deletion provider/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

type StateSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&StateSuite{})
Expand Down
2 changes: 1 addition & 1 deletion rpc/jsoncodec/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

type suite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&suite{})
Expand Down
2 changes: 1 addition & 1 deletion rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

type suite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&suite{})
Expand Down
2 changes: 1 addition & 1 deletion state/apiserver/common/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

type errorsSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&errorsSuite{})
Expand Down
2 changes: 1 addition & 1 deletion state/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestPackage(t *stdtesting.T) {
// test suites (StateSuite, CharmSuite, MachineSuite, etc).
type ConnSuite struct {
testing.MgoSuite
testing.LoggingSuite
testbase.LoggingSuite
annotations *mgo.Collection
charms *mgo.Collection
machines *mgo.Collection
Expand Down
2 changes: 1 addition & 1 deletion state/initialize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

type InitializeSuite struct {
testing.MgoSuite
testing.LoggingSuite
testbase.LoggingSuite
State *state.State
}

Expand Down
2 changes: 1 addition & 1 deletion state/megawatcher_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ options:
`

type storeManagerStateSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
testing.MgoSuite
State *State
}
Expand Down
4 changes: 2 additions & 2 deletions state/multiwatcher/multiwatcher_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Test(t *stdtesting.T) {
}

type storeSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&storeSuite{})
Expand Down Expand Up @@ -270,7 +270,7 @@ func (s *storeSuite) TestGet(c *gc.C) {
}

type storeManagerSuite struct {
testing.LoggingSuite
testbase.LoggingSuite
}

var _ = gc.Suite(&storeManagerSuite{})
Expand Down
2 changes: 1 addition & 1 deletion state/presence/presence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestPackage(t *stdtesting.T) {

type PresenceSuite struct {
testing.MgoSuite
testing.LoggingSuite
testbase.LoggingSuite
presence *mgo.Collection
pings *mgo.Collection
}
Expand Down
Loading

0 comments on commit ad99925

Please sign in to comment.