~themue/juju-core/053-env-more-script-friendly

« back to all changes in this revision

Viewing changes to cmd/jujud/machine_test.go

  • Committer: Dimiter Naydenov
  • Date: 2013-07-29 15:15:41 UTC
  • mto: This revision was merged to the branch mainline in revision 1565.
  • Revision ID: dimiter.naydenov@canonical.com-20130729151541-zm8murwo9u7mtsdu
names: new package

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        envtesting "launchpad.net/juju-core/environs/testing"
22
22
        "launchpad.net/juju-core/errors"
23
23
        "launchpad.net/juju-core/instance"
 
24
        "launchpad.net/juju-core/names"
24
25
        "launchpad.net/juju-core/state"
25
26
        "launchpad.net/juju-core/state/api"
26
27
        "launchpad.net/juju-core/state/api/params"
70
71
        c.Assert(err, IsNil)
71
72
        err = m.SetPassword("machine-password")
72
73
        c.Assert(err, IsNil)
73
 
        conf, tools := s.agentSuite.primeAgent(c, state.MachineTag(m.Id()), "machine-password")
 
74
        conf, tools := s.agentSuite.primeAgent(c, names.MachineTag(m.Id()), "machine-password")
74
75
        conf.MachineNonce = state.BootstrapNonce
75
76
        conf.APIInfo.Nonce = conf.MachineNonce
76
77
        err = conf.Write()