From 9549a92ad62fbbad00e355b707809e6409b9e085 Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Mon, 17 Jul 2017 08:54:22 +0800 Subject: refactor local installer JIRA: DOCTOR-100 Change-Id: I1e2c53f7a716156e35386d42c0df32a228a78fab Signed-off-by: dongwenjuan --- tests/main.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/main.py') diff --git a/tests/main.py b/tests/main.py index 6547835e..b59cd7a3 100644 --- a/tests/main.py +++ b/tests/main.py @@ -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() @@ -89,6 +92,7 @@ class DoctorTest(object): self.inspector.stop() self.monitor.stop() self.consumer.stop() + self.installer.cleanup() def main(): -- cgit 1.2.3-korg