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 import logger as doctor_log
15 LOG = doctor_log.Logger(__name__).getLogger()
18 class DoctorTest(object):
20 def __init__(self, conf):
26 LOG.info('doctor test starting.......')
27 # prepare the cloud env
29 # preparing VM image...
31 # creating test user...
37 # starting doctor sample components...
39 # injecting host failure...
41 # verify the test results
42 except Exception as e:
43 LOG.error('doctor test failed: %s ', e)
48 conf = config.prepare_conf()
50 doctor = DoctorTest(conf)
54 if __name__ == '__main__':