~bac/juju-core/get-endpoints

« back to all changes in this revision

Viewing changes to juju/testing/conn.go

  • Committer: William Reade
  • Author(s): William Reade
  • Date: 2013-03-19 10:30:08 UTC
  • mfrom: (1005.2.3 juju-core)
  • Revision ID: fwereade@gmail.com-20130319103008-wp3laoo158guhkyq
cmd/juju: bootstrap accepts --constraints

...and passes them on to environs.Bootstrap, which passes them on to
Environ.Bootstrap. Only the dummy provider actually handles constraints
at the moment -- so we can test the bootstrap command -- all the others
will be implemented in followups.

R=dimitern, jameinel, dfc, thumper
CC=
https://codereview.appspot.com/7610048

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        c.Assert(err, IsNil)
151
151
        // sanity check we've got the correct environment.
152
152
        c.Assert(environ.Name(), Equals, "dummyenv")
153
 
        c.Assert(environs.Bootstrap(environ, false), IsNil)
 
153
        c.Assert(environs.Bootstrap(environ, state.Constraints{}, false), IsNil)
154
154
 
155
155
        conn, err := juju.NewConn(environ)
156
156
        c.Assert(err, IsNil)