~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to state/unit_test.go

[r=wallyworld] Add container support to force-machine

The deploy --force-machine option now supports containers,
either deploying to existing containers or creating new
ones on nominated machines.

Example syntax:

 juju deploy mysql --force-machine 23
 juju deploy mysql --force-machine 24/lxc/3
 juju deploy mysql --force-machine lxc:25

The last example creates a new lxc container on
machine 25.

The add-machine syntax has been tweaked to remove the
leading "/" from the container arg.

https://codereview.appspot.com/10777044/

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        c.Assert(err, IsNil)
36
36
        s.unit, err = s.service.AddUnit()
37
37
        c.Assert(err, IsNil)
 
38
        c.Assert(s.unit.Series(), Equals, "series")
38
39
}
39
40
 
40
41
func (s *UnitSuite) TestUnitNotFound(c *C) {