From cbaf65d9c0f9597767adafe47012704fe975316c Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Thu, 24 Apr 2014 15:48:23 -0400 Subject: [PATCH] ui: improved fixtures --- ui/javascripts/fixtures.js | 48 ++++++++++++++------------------------ 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/ui/javascripts/fixtures.js b/ui/javascripts/fixtures.js index 22ec760e71..315108b940 100644 --- a/ui/javascripts/fixtures.js +++ b/ui/javascripts/fixtures.js @@ -39,7 +39,7 @@ fixtures.services = [ "Checks": [ { "Name": "serfHealth", - "Status": "passing" + "Status": "critical" }, { "Name": "fooHealth", @@ -154,7 +154,7 @@ fixtures.services_full = { "ServiceID": "", "Notes": "", "Output": "foobar baz", - "Status": "passing", + "Status": "critical", "Name": "Serf Health Status", "CheckID": "serfHealth", "Node": "node-10-0-1-109" @@ -179,15 +179,11 @@ fixtures.nodes = [ "Checks": [ { "Name": "serfHealth", - "status": "passing" - }, - { - "Name": "fooHealth", - "status": "critical" + "Status": "critical" }, { "Name": "bazHealth", - "status": "passing" + "Status": "passing" } ] }, @@ -199,17 +195,9 @@ fixtures.nodes = [ "vagrant-cloud-http" ], "Checks": [ - { - "Name": "serfHealth", - "status": "passing" - }, { "Name": "fooHealth", - "status": "critical" - }, - { - "Name": "bazHealth", - "status": "passing" + "Status": "passing" } ], } @@ -244,10 +232,20 @@ fixtures.nodes_full = { "ServiceName": "", "ServiceID": "", "Notes": "Checks the status of the serf agent", - "Status": "passing", + "Status": "critical", "Name": "Serf Health Status", "CheckID": "serfHealth", "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": "", "Output": "foobar baz", "Status": "passing", - "Name": "Baz Status", - "CheckID": "bazHealth", - "Node": "node-10-0-1-102" - }, - { - "ServiceName": "", - "ServiceID": "", - "Notes": "", - "Output": "foobar baz", - "Status": "passing", - "Name": "Serf Health Status", - "CheckID": "serfHealth", + "Name": "Foo Healthy", + "CheckID": "fooStatus", "Node": "node-10-0-1-102" } ]