Commit f4c8c60e authored by Jérome Perrin's avatar Jérome Perrin

fixup! [slapos.collect] Collect temperature and report consumption

parent 4a7154b9
...@@ -79,7 +79,7 @@ class TestCollectDatabase(unittest.TestCase): ...@@ -79,7 +79,7 @@ class TestCollectDatabase(unittest.TestCase):
database.connect() database.connect()
try: try:
self.assertEquals( self.assertEquals(
[u'user', u'computer', u'system', u'disk'], [u'user', u'computer', u'system', u'disk', u'temperature', u'heating'],
database.getTableList()) database.getTableList())
finally: finally:
database.close() database.close()
...@@ -258,6 +258,8 @@ class TestCollectReport(unittest.TestCase): ...@@ -258,6 +258,8 @@ class TestCollectReport(unittest.TestCase):
csv_path_list = ['%s/1983-01-10/dump_disk.csv' % self.instance_root, csv_path_list = ['%s/1983-01-10/dump_disk.csv' % self.instance_root,
'%s/1983-01-10/dump_computer.csv' % self.instance_root, '%s/1983-01-10/dump_computer.csv' % self.instance_root,
'%s/1983-01-10/dump_user.csv' % self.instance_root, '%s/1983-01-10/dump_user.csv' % self.instance_root,
'%s/1983-01-10/dump_heating.csv' % self.instance_root,
'%s/1983-01-10/dump_temperature.csv' % self.instance_root,
'%s/1983-01-10/dump_system.csv' % self.instance_root] '%s/1983-01-10/dump_system.csv' % self.instance_root]
self.assertEquals(set(glob.glob("%s/1983-01-10/*.csv" % self.instance_root)), self.assertEquals(set(glob.glob("%s/1983-01-10/*.csv" % self.instance_root)),
......
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