Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1442)

Delta Between Two Patch Sets: provider/cloudsigma/provider_test.go

Issue 101970045: Added provider for CloudSigma cloud.
Left Patch Set: Created 9 years, 10 months ago
Right Patch Set: Added provider for CloudSigma cloud. Created 9 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « provider/cloudsigma/provider.go ('k') | provider/cloudsigma/storage.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b