~mfoord/juju-core/tests-replset

« back to all changes in this revision

Viewing changes to juju/testing/conn.go

  • Committer: Benji York
  • Date: 2013-03-20 20:05:34 UTC
  • mfrom: (1010.3.15 1130172)
  • Revision ID: benji.york@canonical.com-20130320200534-ho97u66shmicxkkf
Add SetServiceConstraints to API

This also involved moving the Constraints struct into its own package in order
to break an import cycle.

R=dfc, bac, dimitern, fwereade
CC=
https://codereview.appspot.com/7600044

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
        "io/ioutil"
6
6
        . "launchpad.net/gocheck"
7
7
        "launchpad.net/juju-core/charm"
 
8
        "launchpad.net/juju-core/constraints"
8
9
        "launchpad.net/juju-core/environs"
9
10
        "launchpad.net/juju-core/environs/dummy"
10
11
        "launchpad.net/juju-core/juju"
150
151
        c.Assert(err, IsNil)
151
152
        // sanity check we've got the correct environment.
152
153
        c.Assert(environ.Name(), Equals, "dummyenv")
153
 
        c.Assert(environs.Bootstrap(environ, state.Constraints{}), IsNil)
 
154
        c.Assert(environs.Bootstrap(environ, constraints.Value{}), IsNil)
154
155
 
155
156
        conn, err := juju.NewConn(environ)
156
157
        c.Assert(err, IsNil)