From e9cbcb2d481d73f595be25bdfbef63c4ef9e8ca7 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 14 Dec 2011 08:22:01 -0800 Subject: [PATCH] Update test system dashboard --- ui/index-test.html | 28 ++++++++++++++++------------ ui/scripts-test/system.js | 19 ++++++++++++++++++- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/ui/index-test.html b/ui/index-test.html index 27d611b6e4f..0e78c496aa7 100644 --- a/ui/index-test.html +++ b/ui/index-test.html @@ -754,7 +754,11 @@
-
+
+
+ Refresh +
+
@@ -765,19 +769,19 @@
  • Number of Zones - 0 +
  • Number of Pods - 0 +
  • Number of Clusters - 0 +
  • Number of Hosts - 0 +
@@ -791,19 +795,19 @@
diff --git a/ui/scripts-test/system.js b/ui/scripts-test/system.js index 653f44f90ea..8d502a63510 100644 --- a/ui/scripts-test/system.js +++ b/ui/scripts-test/system.js @@ -15,6 +15,23 @@ title: 'System', id: 'system', + // System dashboard + dashboard: { + dataProvider: function(args) { + args.response.success({ + data: { + zoneCount: 3, + podCount: 4, + clusterCount: 4, + hostCount: 4, + cpuCapacityTotal: '15000 GHZ', + memCapacityTotal: '15.08 GB', + storageCapacityTotal: '10.74 TB' + } + }); + } + }, + // Network-as-a-service configuration naas: { mainNetworks: { @@ -1006,7 +1023,7 @@ notification: { poll: testData.notifications.testPoll } - } + } }, dataProvider: function(args) { args.response.success({