示例#1
0
 def __init__(self):
     self._smtclient = smtclient.get_smtclient()
     self._dist_manager = dist.LinuxDistManager()
     self._pathutils = zvmutils.PathUtils()
     self._namelist = zvmutils.get_namelist()
     self._GuestDbOperator = database.GuestDbOperator()
     self._ImageDbOperator = database.ImageDbOperator()
示例#2
0
 def __init__(self):
     # _fcp_pool store the objects of FCP index by fcp id
     self._fcp_pool = {}
     # _fcp_path_info store the FCP path mapping index by path no
     self._fcp_path_mapping = {}
     self.db = database.FCPDbOperator()
     self._smtclient = smtclient.get_smtclient()
示例#3
0
文件: base.py 项目: kevanlucc/feilong
 def __init__(self, methodName='runTest'):
     super(ZVMConnectorBaseTestCase, self).__init__(methodName)
     self.longMessage = True
     self.start_position = 0
     self.apibase = api_sample.APITestBase()
     self._smtclient = smtclient.get_smtclient()
     self.client = test_utils.TestzCCClient()
     self.utils = test_utils.ZVMConnectorTestUtils()
示例#4
0
 def setUpClass(cls):
     super(VolumeTestCase, cls).setUpClass()
     cls.smtcli = smtclient.get_smtclient()
     cls.userid_list = []
     # Deploy a guest with each specified image and previously generated
     # userid.
     for i in range(0, len(TEST_IMAGE_LIST)):
         image = TEST_IMAGE_LIST[i]
         userid = TEST_USERID_LIST[i][1]
         cls.utils.deploy_guest(userid, image_path=image[1],
                                os_version=image[2])
         cls.userid_list.append(userid)
示例#5
0
 def __init__(self):
     self.fcp_mgr = FCPManager()
     self.config_api = VolumeConfiguratorAPI()
     self._smtclient = smtclient.get_smtclient()
     self.db = database.FCPDbOperator()
示例#6
0
 def __init__(self):
     self._vmop = vmops.get_vmops()
     self._dist_manager = dist.LinuxDistManager()
     self._smtclient = smtclient.get_smtclient()
示例#7
0
 def __init__(self):
     self._smtclient = smtclient.get_smtclient()
示例#8
0
 def __init__(self):
     self._fcp_pool = {}
     self.db = database.FCPDbOperator()
     self._smtclient = smtclient.get_smtclient()
示例#9
0
 def __init__(self):
     self._smtclient = smtclient.get_smtclient()
     self._volume_infos = {}
示例#10
0
文件: monitor.py 项目: wngzhe/feilong
 def __init__(self):
     self._cache = MeteringCache(self._TYPES)
     self._smtclient = smtclient.get_smtclient()
     self._namelist = zvmutils.get_namelist()
示例#11
0
 def __init__(self):
     self._smtclient = smtclient.get_smtclient()
     self._pathutils = zvmutils.PathUtils()
示例#12
0
 def __init__(self):
     self.client = TestzCCClient()
     self.rawapi = api.SDKAPI()
     self._smtclient = smtclient.get_smtclient()