Example #1
0
func primeUnitStatusHistory(c *gc.C, unit *state.Unit, count int) {
	for i := 0; i < count; i++ {
		err := unit.SetStatus(status.StatusActive, "", map[string]interface{}{"$foo": i})
		c.Assert(err, gc.IsNil)
	}
}