OLD | NEW |
1 package dummy_test | 1 package dummy_test |
2 | 2 |
3 import ( | 3 import ( |
4 . "launchpad.net/gocheck" | 4 . "launchpad.net/gocheck" |
5 _ "launchpad.net/juju-core/environs/dummy" | 5 _ "launchpad.net/juju-core/environs/dummy" |
6 "launchpad.net/juju-core/environs/jujutest" | 6 "launchpad.net/juju-core/environs/jujutest" |
7 "launchpad.net/juju-core/testing" | 7 "launchpad.net/juju-core/testing" |
8 stdtesting "testing" | 8 stdtesting "testing" |
9 ) | 9 ) |
10 | 10 |
11 func init() { | 11 func init() { |
12 attrs := map[string]interface{}{ | 12 attrs := map[string]interface{}{ |
13 » » "name": "only", | 13 » » "name": "only", |
14 » » "type": "dummy", | 14 » » "type": "dummy", |
15 » » "state-server": true, | 15 » » "state-server": true, |
16 » » "secret": "pork", | 16 » » "secret": "pork", |
17 » » "admin-secret": "fish", | 17 » » "admin-secret": "fish", |
| 18 » » "ca-cert": testing.CACertPEM, |
| 19 » » "ca-private-key": testing.CAKeyPEM, |
18 } | 20 } |
19 Suite(&jujutest.LiveTests{ | 21 Suite(&jujutest.LiveTests{ |
20 Config: attrs, | 22 Config: attrs, |
21 CanOpenState: true, | 23 CanOpenState: true, |
22 HasProvisioner: false, | 24 HasProvisioner: false, |
23 }) | 25 }) |
24 Suite(&jujutest.Tests{ | 26 Suite(&jujutest.Tests{ |
25 Config: attrs, | 27 Config: attrs, |
26 }) | 28 }) |
27 } | 29 } |
28 | 30 |
29 func TestSuite(t *stdtesting.T) { | 31 func TestSuite(t *stdtesting.T) { |
30 testing.MgoTestPackage(t) | 32 testing.MgoTestPackage(t) |
31 } | 33 } |
OLD | NEW |