diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-07-17 08:54:22 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-08-01 11:13:58 +0800 |
commit | 9549a92ad62fbbad00e355b707809e6409b9e085 (patch) | |
tree | 9b7052325ca7fd067648ef9879d6cab46fa2f2c9 /tests/main.py | |
parent | 162c3ae179f69bd326325b135c3831ae12843e49 (diff) |
refactor local installer
JIRA: DOCTOR-100
Change-Id: I1e2c53f7a716156e35386d42c0df32a228a78fab
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/main.py')
-rw-r--r-- | tests/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
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(): |