ui: improved fixtures

This commit is contained in:
Jack Pearkes 2014-04-24 15:48:23 -04:00
parent d87e722d61
commit 0449428e20

View file

@ -39,7 +39,7 @@ fixtures.services = [
"Checks": [ "Checks": [
{ {
"Name": "serfHealth", "Name": "serfHealth",
"Status": "passing" "Status": "critical"
}, },
{ {
"Name": "fooHealth", "Name": "fooHealth",
@ -154,7 +154,7 @@ fixtures.services_full = {
"ServiceID": "", "ServiceID": "",
"Notes": "", "Notes": "",
"Output": "foobar baz", "Output": "foobar baz",
"Status": "passing", "Status": "critical",
"Name": "Serf Health Status", "Name": "Serf Health Status",
"CheckID": "serfHealth", "CheckID": "serfHealth",
"Node": "node-10-0-1-109" "Node": "node-10-0-1-109"
@ -179,15 +179,11 @@ fixtures.nodes = [
"Checks": [ "Checks": [
{ {
"Name": "serfHealth", "Name": "serfHealth",
"status": "passing" "Status": "critical"
},
{
"Name": "fooHealth",
"status": "critical"
}, },
{ {
"Name": "bazHealth", "Name": "bazHealth",
"status": "passing" "Status": "passing"
} }
] ]
}, },
@ -199,17 +195,9 @@ fixtures.nodes = [
"vagrant-cloud-http" "vagrant-cloud-http"
], ],
"Checks": [ "Checks": [
{
"Name": "serfHealth",
"status": "passing"
},
{ {
"Name": "fooHealth", "Name": "fooHealth",
"status": "critical" "Status": "passing"
},
{
"Name": "bazHealth",
"status": "passing"
} }
], ],
} }
@ -244,10 +232,20 @@ fixtures.nodes_full = {
"ServiceName": "", "ServiceName": "",
"ServiceID": "", "ServiceID": "",
"Notes": "Checks the status of the serf agent", "Notes": "Checks the status of the serf agent",
"Status": "passing", "Status": "critical",
"Name": "Serf Health Status", "Name": "Serf Health Status",
"CheckID": "serfHealth", "CheckID": "serfHealth",
"Node": "node-10-0-1-109" "Node": "node-10-0-1-109"
},
{
"ServiceName": "",
"ServiceID": "",
"Notes": "",
"Output": "foobar baz",
"Status": "passing",
"Name": "Baz Status",
"CheckID": "bazHealth",
"Node": "node-10-0-1-109"
} }
] ]
}, },
@ -277,18 +275,8 @@ fixtures.nodes_full = {
"Notes": "", "Notes": "",
"Output": "foobar baz", "Output": "foobar baz",
"Status": "passing", "Status": "passing",
"Name": "Baz Status", "Name": "Foo Healthy",
"CheckID": "bazHealth", "CheckID": "fooStatus",
"Node": "node-10-0-1-102"
},
{
"ServiceName": "",
"ServiceID": "",
"Notes": "",
"Output": "foobar baz",
"Status": "passing",
"Name": "Serf Health Status",
"CheckID": "serfHealth",
"Node": "node-10-0-1-102" "Node": "node-10-0-1-102"
} }
] ]