summaryrefslogtreecommitdiffstats
path: root/tests/main.py
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2017-07-11 19:07:22 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2017-07-29 12:48:56 +0800
commit162c3ae179f69bd326325b135c3831ae12843e49 (patch)
tree79ff7e3f9c4b90c61a912f72111d7fca4a3f533e /tests/main.py
parente52dccf724ee05a16b6e78e79d7045f5c0ac979f (diff)
refactor sample consumer
JIRA: DOCTOR-113 Change-Id: I60f17953e9b1cdf31ea50f313b33f8ede0831bc2 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/main.py')
-rw-r--r--tests/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/main.py b/tests/main.py
index 6644b544..6547835e 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -12,6 +12,7 @@ import sys
from alarm import Alarm
import config
+from consumer import get_consumer
from image import Image
from instance import Instance
from inspector import get_inspector
@@ -37,6 +38,7 @@ class DoctorTest(object):
self.monitor = get_monitor(self.conf,
self.inspector.get_inspector_url(),
LOG)
+ self.consumer = get_consumer(self.conf, LOG)
def setup(self):
# prepare the cloud env
@@ -59,6 +61,7 @@ class DoctorTest(object):
# starting doctor sample components...
self.inspector.start()
self.monitor.start()
+ self.consumer.start()
def run(self):
"""run doctor test"""
@@ -85,6 +88,7 @@ class DoctorTest(object):
self.user.delete()
self.inspector.stop()
self.monitor.stop()
+ self.consumer.stop()
def main():