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

Delta Between Two Patch Sets: environs/jujutest/test.go

Issue 6347044: environs/ec2: bootstrap (Closed)
Left Patch Set: environs/ec2: bootstrap Created 11 years, 9 months ago
Right Patch Set: environs/ec2: bootstrap Created 11 years, 8 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 | « environs/jujutest/livetests.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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
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 }
LEFTRIGHT

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