~rogpeppe/juju-core/430-do-not-upload-fake-tools-in-live-tests

« back to all changes in this revision

Viewing changes to environs/jujutest/livetests.go

  • Committer: Roger Peppe
  • Date: 2013-10-02 13:49:43 UTC
  • Revision ID: roger.peppe@canonical.com-20131002134943-of4ibd10g5ovr2wh
environs/jujutest: don't upload fake tools in live tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
                _, err := sync.Upload(t.Env.Storage(), nil, config.DefaultSeries)
137
137
                c.Assert(err, gc.IsNil)
138
138
        }
139
 
        envtesting.UploadFakeTools(c, t.Env.Storage())
140
139
        err := bootstrap.Bootstrap(t.Env, cons)
141
140
        c.Assert(err, gc.IsNil)
142
141
        t.bootstrapped = true
178
177
// that it does not assume a pristine environment.
179
178
func (t *LiveTests) TestStartStop(c *gc.C) {
180
179
        t.PrepareOnce(c)
181
 
        envtesting.UploadFakeTools(c, t.Env.Storage())
182
180
 
183
181
        inst, _ := testing.AssertStartInstance(c, t.Env, "0")
184
182
        c.Assert(inst, gc.NotNil)
232
230
 
233
231
func (t *LiveTests) TestPorts(c *gc.C) {
234
232
        t.PrepareOnce(c)
235
 
        envtesting.UploadFakeTools(c, t.Env.Storage())
236
233
 
237
234
        inst1, _ := testing.AssertStartInstance(c, t.Env, "1")
238
235
        c.Assert(inst1, gc.NotNil)
321
318
 
322
319
func (t *LiveTests) TestGlobalPorts(c *gc.C) {
323
320
        t.PrepareOnce(c)
324
 
        envtesting.UploadFakeTools(c, t.Env.Storage())
325
321
 
326
322
        // Change configuration.
327
323
        oldConfig := t.Env.Config()