Fix XenServer diagnostics to provide correct details

XenServer driver was providing the values which were
not the actual latest information, this makes sure the
information is the latest and fixes LP Bug #1002497

Change-Id: I4241be4a040fbadd630ba3c2cfaacbcf1c18f72e
This commit is contained in:
Mohammed Naser
2012-05-21 20:48:38 +00:00
parent 5d0e08504c
commit 0dff6e2962

View File

@@ -272,14 +272,18 @@ class XenAPIVMTestCase(test.TestCase):
fake_diagnostics = {
'vbd_xvdb_write': '0.0',
'memory_target': '10961792000.0000',
'memory_internal_free': '3612860.6020',
'memory': '10961792000.0000',
'memory_target': '4294967296.0000',
'memory_internal_free': '1415564.0000',
'memory': '4294967296.0000',
'vbd_xvda_write': '0.0',
'cpu0': '0.0110',
'vif_0_tx': '752.4007',
'cpu0': '0.0042',
'vif_0_tx': '287.4134',
'vbd_xvda_read': '0.0',
'vif_0_rx': '4837.8805'
'vif_0_rx': '1816.0144',
'vif_2_rx': '0.0',
'vif_2_tx': '0.0',
'vbd_xvdb_read': '0.0',
'last_update': '1328795567',
}
instance = self._create_instance()
expected = self.conn.get_diagnostics(instance)