Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Unified Diff: cmd/jujud/machine_test.go

Issue 9662048: Implement a add-machine command (Closed)
Patch Set: Implement a add-machine command Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/jujud/bootstrap.go ('k') | state/state.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/jujud/machine_test.go
=== modified file 'cmd/jujud/machine_test.go'
--- cmd/jujud/machine_test.go 2013-05-02 15:55:42 +0000
+++ cmd/jujud/machine_test.go 2013-05-31 00:11:19 +0000
@@ -8,6 +8,7 @@
. "launchpad.net/gocheck"
"launchpad.net/juju-core/charm"
"launchpad.net/juju-core/cmd"
+ "launchpad.net/juju-core/constraints"
"launchpad.net/juju-core/environs/agent"
"launchpad.net/juju-core/environs/dummy"
envtesting "launchpad.net/juju-core/environs/testing"
@@ -42,7 +43,7 @@
// machine agent's directory. It returns the new machine, the
// agent's configuration and the tools currently running.
func (s *MachineSuite) primeAgent(c *C, jobs ...state.MachineJob) (*state.Machine, *agent.Conf, *state.Tools) {
- m, err := s.State.InjectMachine("series", "ardbeg-0", jobs...)
+ m, err := s.State.InjectMachine("series", constraints.Value{}, "ardbeg-0", jobs...)
c.Assert(err, IsNil)
err = m.SetMongoPassword("machine-password")
c.Assert(err, IsNil)
« no previous file with comments | « cmd/jujud/bootstrap.go ('k') | state/state.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b