diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-04-12 10:46:39 +0800 |
---|---|---|
committer | wenjuan dong <dong.wenjuan@zte.com.cn> | 2017-07-27 02:00:34 +0000 |
commit | dbd84d95163fb492962ebacdea7bc2a89a8b56f9 (patch) | |
tree | 443726a628d8b045e9458909158b04558edaba98 /tests/main.py | |
parent | 3e0300e8f9695348aa4564f87a23ac3c0cf737ff (diff) |
refactor the monitor
JIRA: DOCTOR-99
Change-Id: I1831d329ffe80435532678fcb23d54f310422ce8
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/main.py')
-rw-r--r-- | tests/main.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.py b/tests/main.py index 797e28b2..6644b544 100644 --- a/tests/main.py +++ b/tests/main.py @@ -18,6 +18,8 @@ from inspector import get_inspector import logger as doctor_log from user import User from network import Network +from monitor import get_monitor + LOG = doctor_log.Logger('doctor').getLogger() @@ -32,6 +34,9 @@ class DoctorTest(object): self.instance = Instance(self.conf, LOG) self.alarm = Alarm(self.conf, LOG) self.inspector = get_inspector(self.conf, LOG) + self.monitor = get_monitor(self.conf, + self.inspector.get_inspector_url(), + LOG) def setup(self): # prepare the cloud env @@ -53,6 +58,7 @@ class DoctorTest(object): # starting doctor sample components... self.inspector.start() + self.monitor.start() def run(self): """run doctor test""" @@ -78,6 +84,7 @@ class DoctorTest(object): self.image.delete() self.user.delete() self.inspector.stop() + self.monitor.stop() def main(): |