LEFT | RIGHT |
(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 Loading... |
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 } |
LEFT | RIGHT |