def _test_common_body(self, ics_conf, expected):
     settings.ICS_CONF_SOURCE = ics_conf
     collect_result = collector_entry_point.execute()
     self.assertTrue(collect_result)
     actual = self._db_manager.execute_query('SELECT * FROM STAT_DATA')
     self._check_data('ics.conf', expected, actual)
     self._db_manager.execute_nonquery('DELETE FROM STAT_DATA')
Esempio n. 2
0
def main():
    result = collector_entry_point.execute()
    if not result:
        sys.exit(-1)