LEFT | RIGHT |
1 package jujutest | 1 package jujutest |
2 | 2 |
3 import ( | 3 import ( |
4 . "launchpad.net/gocheck" | 4 . "launchpad.net/gocheck" |
5 "launchpad.net/juju-core/environs" | 5 "launchpad.net/juju-core/environs" |
6 "launchpad.net/juju-core/state" | 6 "launchpad.net/juju-core/state" |
7 "time" | 7 "time" |
8 ) | 8 ) |
9 | 9 |
10 // InvalidStateInfo holds information about no state - it will always give | 10 // InvalidStateInfo holds information about no state - it will always give |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // CanOpenState should be true if the testing environment allows | 61 // CanOpenState should be true if the testing environment allows |
62 // the state to be opened after bootstrapping. | 62 // the state to be opened after bootstrapping. |
63 CanOpenState bool | 63 CanOpenState bool |
64 | 64 |
65 // HasProvisioner should be true if the environment has | 65 // HasProvisioner should be true if the environment has |
66 // a provisioning agent. | 66 // a provisioning agent. |
67 HasProvisioner bool | 67 HasProvisioner bool |
68 | 68 |
69 bootstrapped bool | 69 bootstrapped bool |
70 | |
71 // UseLocahost says to ignore the env supplied StateInfo | |
72 UseLocalhost bool | |
73 } | 70 } |
74 | 71 |
75 func (t *LiveTests) SetUpSuite(c *C) { | 72 func (t *LiveTests) SetUpSuite(c *C) { |
76 e, err := t.Environs.Open(t.Name) | 73 e, err := t.Environs.Open(t.Name) |
77 c.Assert(err, IsNil, Commentf("opening environ %q", t.Name)) | 74 c.Assert(err, IsNil, Commentf("opening environ %q", t.Name)) |
78 c.Assert(e, NotNil) | 75 c.Assert(e, NotNil) |
79 t.Env = e | 76 t.Env = e |
80 } | 77 } |
81 | 78 |
82 func (t *LiveTests) BootstrapOnce(c *C) { | 79 func (t *LiveTests) BootstrapOnce(c *C) { |
(...skipping 15 matching lines...) Expand all Loading... |
98 err := t.Env.Destroy(nil) | 95 err := t.Env.Destroy(nil) |
99 c.Check(err, IsNil) | 96 c.Check(err, IsNil) |
100 t.Env = nil | 97 t.Env = nil |
101 } | 98 } |
102 | 99 |
103 func (t *LiveTests) SetUpTest(*C) { | 100 func (t *LiveTests) SetUpTest(*C) { |
104 } | 101 } |
105 | 102 |
106 func (t *LiveTests) TearDownTest(*C) { | 103 func (t *LiveTests) TearDownTest(*C) { |
107 } | 104 } |
LEFT | RIGHT |