1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 from image import Image
13 import logger as doctor_log
16 LOG = doctor_log.Logger('doctor').getLogger()
19 class DoctorTest(object):
21 def __init__(self, conf):
23 self.image = Image(self.conf)
28 LOG.info('doctor test starting.......')
29 # prepare the cloud env
31 # preparing VM image...
34 # creating test user...
40 # starting doctor sample components...
42 # injecting host failure...
44 # verify the test results
45 except Exception as e:
46 LOG.error('doctor test failed, Exception=%s' % e)
54 conf = config.prepare_conf()
56 doctor = DoctorTest(conf)
60 if __name__ == '__main__':