Example #1
0
 def __init__(self, client, xml_compat):
     self._vdsmapi = vdsmapi.get_api()
     self._client = client
     self._xml_compat = xml_compat
     self._timeouts = {
         'migrationCreate': config.getint(
             'vars', 'migration_create_timeout'),
     }
Example #2
0
 def __init__(self):
     self.api = vdsmapi.get_api()
     self._threadLocal = threading.local()
     self.log = logging.getLogger('DynamicBridge')
Example #3
0
 def _getAPI(self):
     testPath = os.path.realpath(__file__)
     dirName = os.path.split(testPath)[0]
     apiPath = os.path.join(
         dirName, '..', 'lib', 'api', 'vdsmapi-schema.json')
     return vdsmapi.get_api(apiPath)
Example #4
0
 def testSchemaParse(self):
     self.assertTrue(isinstance(vdsmapi.get_api(), dict))
Example #5
0
 def load_api(self, data):
     vdsmapi._api_info = None
     data = textwrap.dedent(data)
     with temporaryPath(data=data) as filename:
         yield vdsmapi.get_api(filename)
Example #6
0
 def testSchemaParse(self):
     self.assertTrue(isinstance(vdsmapi.get_api(), dict))
Example #7
0
 def load_api(self, data):
     vdsmapi._api_info = None
     data = textwrap.dedent(data)
     with temporaryPath(data=data) as filename:
         yield vdsmapi.get_api(filename)
Example #8
0
 def __init__(self):
     self.api = vdsmapi.get_api()
     self._threadLocal = threading.local()
     self.log = logging.getLogger('DynamicBridge')
Example #9
0
 def __init__(self, client, xml_compat):
     self._vdsmapi = vdsmapi.get_api()
     self._client = client
     self._xml_compat = xml_compat
Example #10
0
 def _getAPI(self):
     testPath = os.path.realpath(__file__)
     dirName = os.path.split(testPath)[0]
     apiPath = os.path.join(dirName, '..', 'lib', 'api',
                            'vdsmapi-schema.json')
     return vdsmapi.get_api(apiPath)