~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to state/apiserver/client/client_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:
327
327
}
328
328
 
329
329
func (s *clientSuite) TestClientServiceDeployPrincipal(c *C) {
330
 
        // TODO(fwereade): test ForceMachineId directly on srvClient, when we
 
330
        // TODO(fwereade): test ForceMachineSpec directly on srvClient, when we
331
331
        // manage to extract it as a package and can thus do it conveniently.
332
332
        store, restore := makeMockCharmStore()
333
333
        defer restore()