LEFT | RIGHT |
1 package main | 1 package main |
2 | 2 |
3 import ( | 3 import ( |
4 "bytes" | 4 "bytes" |
5 "encoding/json" | 5 "encoding/json" |
6 "fmt" | 6 "fmt" |
7 . "launchpad.net/gocheck" | 7 . "launchpad.net/gocheck" |
8 "launchpad.net/goyaml" | 8 "launchpad.net/goyaml" |
9 "launchpad.net/juju-core/charm" | 9 "launchpad.net/juju-core/charm" |
10 "launchpad.net/juju-core/cmd" | 10 "launchpad.net/juju-core/cmd" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 "add two more machine, one with a dead agent, one in err
or state", | 301 "add two more machine, one with a dead agent, one in err
or state", |
302 M{ | 302 M{ |
303 "machines": M{ | 303 "machines": M{ |
304 "0": machine0, | 304 "0": machine0, |
305 "1": machine1, | 305 "1": machine1, |
306 "2": machine2, | 306 "2": machine2, |
307 "3": M{ | 307 "3": M{ |
308 "dns-name": "dummyenv-3.
dns", | 308 "dns-name": "dummyenv-3.
dns", |
309 "instance-id": "dummyenv-3"
, | 309 "instance-id": "dummyenv-3"
, |
310 "agent-state": "down", | 310 "agent-state": "down", |
311 » » » » » "agent-state-info": "(stopped: Really?)"
, | 311 » » » » » » "agent-state-info": "(stopped: R
eally?)", |
312 }, | 312 }, |
313 "4": M{ | 313 "4": M{ |
314 "dns-name": "dummyenv-4.
dns", | 314 "dns-name": "dummyenv-4.
dns", |
315 "instance-id": "dummyenv-4"
, | 315 "instance-id": "dummyenv-4"
, |
316 "agent-state": "error", | 316 "agent-state": "error", |
317 "agent-state-info": "Beware the
red toys", | 317 "agent-state-info": "Beware the
red toys", |
318 }, | 318 }, |
319 }, | 319 }, |
320 "services": M{ | 320 "services": M{ |
321 "exposed-service": M{ | 321 "exposed-service": M{ |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 for i, t := range statusTests { | 545 for i, t := range statusTests { |
546 c.Log("test %d: %s", i, t.summary) | 546 c.Log("test %d: %s", i, t.summary) |
547 func() { | 547 func() { |
548 // Prepare context and run all steps to setup. | 548 // Prepare context and run all steps to setup. |
549 ctx := s.newContext() | 549 ctx := s.newContext() |
550 defer s.resetContext(c, ctx) | 550 defer s.resetContext(c, ctx) |
551 ctx.run(c, t.steps) | 551 ctx.run(c, t.steps) |
552 }() | 552 }() |
553 } | 553 } |
554 } | 554 } |
LEFT | RIGHT |