示例#1
0
 def __init__(self):
     self.collectors = [
         collector.StaticFactsCollector(),
         host_collector.HostCollector(),
         hwprobe.HardwareCollector(),
         custom.CustomFactsCollector(),
         insights.InsightsCollector()
     ]
示例#2
0
 def setUp(self):
     self.collector = insights.InsightsCollector()
     self.machine_id_fp = tempfile.NamedTemporaryFile()
     if six.PY3:
         self.machine_id_fp.write(bytes(INSIGHT_TEST_UUID, 'UTF-8'))
     else:
         self.machine_id_fp.write(INSIGHT_TEST_UUID)
     self.machine_id_fp.flush()
示例#3
0
 def setUp(self):
     self.collector = insights.InsightsCollector()
     self.machine_id_fp = tempfile.NamedTemporaryFile()
     self.machine_id_fp.write(bytes(INSIGHT_TEST_UUID, "UTF-8"))
     self.machine_id_fp.flush()