~go-bot/juju-core/trunk

« back to all changes in this revision

Viewing changes to state/apiserver/uniter/uniter_test.go

  • Committer: Tarmac
  • Author(s): Frank Mueller
  • Date: 2013-09-27 15:54:12 UTC
  • mfrom: (1880.1.8 juju-core)
  • Revision ID: tarmac-20130927155412-7jg4vd1xuikq4umy
[r=themue],[bug=1224568] uniter: add hook error status data

With this CL information about a failing hook and,
if possible, the relation id and the remote unit are
written into the status data of the status doc.

https://codereview.appspot.com/14030043/

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        })
125
125
 
126
126
        // Verify mysqlUnit - no change.
127
 
        status, info, err := s.mysqlUnit.Status()
 
127
        status, info, _, err := s.mysqlUnit.Status()
128
128
        c.Assert(err, gc.IsNil)
129
129
        c.Assert(status, gc.Equals, params.StatusStopped)
130
130
        c.Assert(info, gc.Equals, "foo")
131
131
        // ...wordpressUnit is fine though.
132
 
        status, info, err = s.wordpressUnit.Status()
 
132
        status, info, _, err = s.wordpressUnit.Status()
133
133
        c.Assert(err, gc.IsNil)
134
134
        c.Assert(status, gc.Equals, params.StatusStopped)
135
135
        c.Assert(info, gc.Equals, "foobar")