~themue/juju-core/010-local-removed-old-approach

« back to all changes in this revision

Viewing changes to worker/machiner/machiner_test.go

  • Committer: William Reade
  • Author(s): William Reade
  • Date: 2013-02-22 10:46:28 UTC
  • mfrom: (916.2.3 juju-core)
  • Revision ID: fwereade@gmail.com-20130222104628-0wjbo6vu2hi15oxw
state: add Machine.Series

as a very first step towards resolving lp:1131608

R=TheMue, dimitern
CC=
https://codereview.appspot.com/7399049

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
}
27
27
 
28
28
func (s *MachinerSuite) TestRunStop(c *C) {
29
 
        m, err := s.State.AddMachine(state.JobHostUnits)
 
29
        m, err := s.State.AddMachine("series", state.JobHostUnits)
30
30
        c.Assert(err, IsNil)
31
31
        mr := machiner.NewMachiner(s.State, m.Id())
32
32
        c.Assert(mr.Stop(), IsNil)
35
35
}
36
36
 
37
37
func (s *MachinerSuite) TestSetDead(c *C) {
38
 
        m, err := s.State.AddMachine(state.JobHostUnits)
 
38
        m, err := s.State.AddMachine("series", state.JobHostUnits)
39
39
        c.Assert(err, IsNil)
40
40
        mr := machiner.NewMachiner(s.State, m.Id())
41
41
        defer mr.Stop()