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'), }
def __init__(self): self.api = vdsmapi.get_api() self._threadLocal = threading.local() self.log = logging.getLogger('DynamicBridge')
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)
def testSchemaParse(self): self.assertTrue(isinstance(vdsmapi.get_api(), dict))
def load_api(self, data): vdsmapi._api_info = None data = textwrap.dedent(data) with temporaryPath(data=data) as filename: yield vdsmapi.get_api(filename)
def __init__(self, client, xml_compat): self._vdsmapi = vdsmapi.get_api() self._client = client self._xml_compat = xml_compat
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)