Commit 220760ba authored by Ivan Tyagov's avatar Ivan Tyagov

Since ec876a72 new data was inserted, reflect changes in test.

parent 8a18a874
...@@ -804,11 +804,11 @@ class TestConsumptionReportBase(unittest.TestCase): ...@@ -804,11 +804,11 @@ class TestConsumptionReportBase(unittest.TestCase):
data = self.report.getPartitionProcessConsumptionList( data = self.report.getPartitionProcessConsumptionList(
'slapuser19', date_scope='2019-10-05', 'slapuser19', date_scope='2019-10-05',
min_time='00:01:00', max_time='00:13:00') min_time='00:01:00', max_time='00:13:00')
self.assertEqual(1784.02, data[-1]['cpu_time']) self.assertEqual(0.02, data[-1]['cpu_time'])
self.assertEqual(56974.0, data[-1]['pid']) self.assertEqual(1363.0, data[-1]['pid'])
self.assertEqual(102665369.0, data[-1]['io_cycles_counter']) self.assertEqual(193206.0, data[-1]['io_cycles_counter'])
self.assertEqual(2.35, data[-1]['memory_rss']) self.assertEqual(5.16, data[-1]['memory_rss'])
self.assertEqual(35299729408.0, data[-1]['io_rw_counter']) self.assertEqual(2916352.0, data[-1]['io_rw_counter'])
def test_getPartitionConsumptionStatusList(self): def test_getPartitionConsumptionStatusList(self):
data = self.report.getPartitionConsumptionStatusList('slapuser19', date_scope='2019-10-05', data = self.report.getPartitionConsumptionStatusList('slapuser19', date_scope='2019-10-05',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment