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

Delta Between Two Patch Sets: provider/openstack/live_test.go

Issue 13053043: environs/*: move providers into provider
Left Patch Set: environs/*: move providers into provider Created 11 years, 7 months ago
Right Patch Set: environs/*: move providers into provider Created 11 years, 7 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:
Right: Side by side diff | Download
« no previous file with change/comment | « provider/local/local_test.go ('k') | provider/openstack/local_test.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
(no file at all)
1 // Copyright 2012, 2013 Canonical Ltd. 1 // Copyright 2012, 2013 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 openstack_test 4 package openstack_test
5 5
6 import ( 6 import (
7 "crypto/rand" 7 "crypto/rand"
8 "fmt" 8 "fmt"
9 "io" 9 "io"
10 . "launchpad.net/gocheck" 10 . "launchpad.net/gocheck"
11 "launchpad.net/goose/client" 11 "launchpad.net/goose/client"
12 "launchpad.net/goose/identity" 12 "launchpad.net/goose/identity"
13 "launchpad.net/juju-core/environs" 13 "launchpad.net/juju-core/environs"
14 "launchpad.net/juju-core/environs/jujutest" 14 "launchpad.net/juju-core/environs/jujutest"
15 "launchpad.net/juju-core/environs/provider/openstack"
16 envtesting "launchpad.net/juju-core/environs/testing" 15 envtesting "launchpad.net/juju-core/environs/testing"
16 "launchpad.net/juju-core/provider/openstack"
17 coretesting "launchpad.net/juju-core/testing" 17 coretesting "launchpad.net/juju-core/testing"
18 ) 18 )
19 19
20 // generate a different bucket name for each config instance, so that 20 // generate a different bucket name for each config instance, so that
21 // we are not polluted by previous test state. 21 // we are not polluted by previous test state.
22 func randomName() string { 22 func randomName() string {
23 buf := make([]byte, 8) 23 buf := make([]byte, 8)
24 _, err := io.ReadFull(rand.Reader, buf) 24 _, err := io.ReadFull(rand.Reader, buf)
25 if err != nil { 25 if err != nil {
26 panic(fmt.Sprintf("error from crypto rand: %v", err)) 26 panic(fmt.Sprintf("error from crypto rand: %v", err))
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 func (t *LiveTests) SetUpTest(c *C) { 121 func (t *LiveTests) SetUpTest(c *C) {
122 t.LoggingSuite.SetUpTest(c) 122 t.LoggingSuite.SetUpTest(c)
123 t.LiveTests.SetUpTest(c) 123 t.LiveTests.SetUpTest(c)
124 } 124 }
125 125
126 func (t *LiveTests) TearDownTest(c *C) { 126 func (t *LiveTests) TearDownTest(c *C) {
127 t.LiveTests.TearDownTest(c) 127 t.LiveTests.TearDownTest(c)
128 t.LoggingSuite.TearDownTest(c) 128 t.LoggingSuite.TearDownTest(c)
129 } 129 }
LEFTRIGHT

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