LEFT | RIGHT |
1 // Copyright 2014 Canonical Ltd. | 1 // Copyright 2014 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package cloudsigma | 4 package cloudsigma |
5 | 5 |
6 import ( | 6 import ( |
7 "flag" | 7 "flag" |
8 "io" | 8 "io" |
9 "testing" | 9 "testing" |
10 | 10 |
11 gc "launchpad.net/gocheck" | 11 gc "launchpad.net/gocheck" |
12 » "launchpad.net/juju-core/testing/testbase" | 12 » tt "launchpad.net/juju-core/testing" |
13 "launchpad.net/juju-core/utils" | 13 "launchpad.net/juju-core/utils" |
14 ) | 14 ) |
15 | 15 |
16 var live = flag.Bool("live", false, "run tests on live CloudSigma account") | 16 var live = flag.Bool("live", false, "run tests on live CloudSigma account") |
17 | 17 |
18 func TestCloudSigma(t *testing.T) { | 18 func TestCloudSigma(t *testing.T) { |
19 /* | 19 /* |
20 if *live { | 20 if *live { |
21 registerLiveTests() | 21 registerLiveTests() |
22 } | 22 } |
23 */ | 23 */ |
24 gc.TestingT(t) | 24 gc.TestingT(t) |
25 } | 25 } |
26 | 26 |
27 type providerSuite struct { | 27 type providerSuite struct { |
28 » testbase.LoggingSuite | 28 » tt.BaseSuite |
29 } | 29 } |
30 | 30 |
31 var _ = gc.Suite(&providerSuite{}) | 31 var _ = gc.Suite(&providerSuite{}) |
32 | 32 |
33 func (s *providerSuite) TestProviderBoilerplateConfig(c *gc.C) { | 33 func (s *providerSuite) TestProviderBoilerplateConfig(c *gc.C) { |
34 cfg := providerInstance.BoilerplateConfig() | 34 cfg := providerInstance.BoilerplateConfig() |
35 c.Assert(cfg, gc.Not(gc.Equals), "") | 35 c.Assert(cfg, gc.Not(gc.Equals), "") |
36 } | 36 } |
37 | 37 |
38 type failReader struct { | 38 type failReader struct { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 } | 85 } |
86 func (f *fakeStorage) Remove(name string) error { | 86 func (f *fakeStorage) Remove(name string) error { |
87 f.call = "Remove" | 87 f.call = "Remove" |
88 f.name = name | 88 f.name = name |
89 return nil | 89 return nil |
90 } | 90 } |
91 func (f *fakeStorage) RemoveAll() error { | 91 func (f *fakeStorage) RemoveAll() error { |
92 f.call = "RemoveAll" | 92 f.call = "RemoveAll" |
93 return nil | 93 return nil |
94 } | 94 } |
LEFT | RIGHT |