summaryrefslogtreecommitdiffstats
path: root/tests/main.py
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2017-07-03 10:03:35 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2017-07-25 13:51:05 +0800
commit0b2494f01dc11091636b46fa49aeab43292f9d28 (patch)
tree4b92c16068a3f8d591824a8eea751523db935148 /tests/main.py
parent7e0ab6e2149df22455e58eb363eb291a985514de (diff)
refactor sample inspector
JIRA: DOCTOR-98 Change-Id: I7110b680d0a0c64b1b2666abcea183e73373dca7 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/main.py')
-rw-r--r--tests/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/main.py b/tests/main.py
index 45683d1e..182680ce 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -14,6 +14,7 @@ from alarm import Alarm
import config
from image import Image
from instance import Instance
+from inspector import get_inspector
import logger as doctor_log
from user import User
from network import Network
@@ -30,6 +31,7 @@ class DoctorTest(object):
self.network = Network(self.conf, LOG)
self.instance = Instance(self.conf, LOG)
self.alarm = Alarm(self.conf, LOG)
+ self.inspector = get_inspector(self.conf, LOG)
def setup(self):
# prepare the cloud env
@@ -49,6 +51,9 @@ class DoctorTest(object):
# creating alarm...
self.alarm.create()
+ # starting doctor sample components...
+ self.inspector.start()
+
def run(self):
"""run doctor test"""
try:
@@ -72,6 +77,7 @@ class DoctorTest(object):
self.network.delete()
self.image.delete()
self.user.delete()
+ self.inspector.stop()
def main():