~alexpilotti/juju-core/juju-core

« back to all changes in this revision

Viewing changes to state/apiserver/client/status_test.go

[r=dimitern] Show networks in juju status

This adds a new state method AllNetworks(), which returns
all networks in state, and also makes the necessary changes
to the API and cmd/juju so we can show networks as top-level
entities in juju status:

machines: ...
services: ...
networks:
  net1:
    provider-id: foo
    cidr: 0.1.2.0/24
    vlan-tag: 42

https://codereview.appspot.com/91000043/

R=hduran-8

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        c.Check(status.EnvironmentName, gc.Equals, "dummyenv")
34
34
        c.Check(status.Services, gc.HasLen, 0)
35
35
        c.Check(status.Machines, gc.HasLen, 1)
 
36
        c.Check(status.Networks, gc.HasLen, 0)
36
37
        resultMachine, ok := status.Machines[machine.Id()]
37
38
        if !ok {
38
39
                c.Fatalf("Missing machine with id %q", machine.Id())