Add Collectd as a Monitor Type
[doctor.git] / tests / main.py
index 6547835..b360f12 100644 (file)
@@ -16,6 +16,7 @@ from consumer import get_consumer
 from image import Image
 from instance import Instance
 from inspector import get_inspector
+from installer import get_installer
 import logger as doctor_log
 from user import User
 from network import Network
@@ -39,9 +40,11 @@ class DoctorTest(object):
                                    self.inspector.get_inspector_url(),
                                    LOG)
         self.consumer = get_consumer(self.conf, LOG)
+        self.installer = get_installer(self.conf, LOG)
 
     def setup(self):
         # prepare the cloud env
+        self.installer.setup()
 
         # preparing VM image...
         self.image.create()
@@ -71,8 +74,10 @@ class DoctorTest(object):
             self.setup()
 
             # injecting host failure...
+            # NOTE (umar) add INTERFACE_NAME logic to host injection
 
             # verify the test results
+            # NOTE (umar) copy remote monitor.log file when monitor=collectd
 
         except Exception as e:
             LOG.error('doctor test failed, Exception=%s' % e)
@@ -89,6 +94,7 @@ class DoctorTest(object):
         self.inspector.stop()
         self.monitor.stop()
         self.consumer.stop()
+        self.installer.cleanup()
 
 
 def main():