Exemple #1
0
def main():
    schema = sys.argv[1]
    output = sys.argv[2]

    api = vdsmapi.get_api(schema)
    # verify_symbols(symbols)

    # Now merge in the information from the comments
    with open(schema) as f:
        symbols = read_schema_doc(f, api)

    create_doc(symbols, output)
Exemple #2
0
def main():
    schema = sys.argv[1]
    output = sys.argv[2]

    api = vdsmapi.get_api(schema)
    # verify_symbols(symbols)

    # Now merge in the information from the comments
    with open(schema) as f:
        symbols = read_schema_doc(f, api)

    create_doc(symbols, output)
Exemple #3
0
 def __init__(self):
     self.api = vdsmapi.get_api()
     self._threadLocal = threading.local()
Exemple #4
0
 def __init__(self):
     self.api = vdsmapi.get_api()
Exemple #5
0
 def testSchemaParse(self):
     self.assertTrue(isinstance(vdsmapi.get_api(), dict))
Exemple #6
0
 def __init__(self):
     self.api = vdsmapi.get_api()
Exemple #7
0
 def __init__(self):
     self.api = vdsmapi.get_api()
     self._threadLocal = threading.local()
Exemple #8
0
 def _getAPI(self):
     testPath = os.path.realpath(__file__)
     dirName = os.path.split(testPath)[0]
     apiPath = os.path.join(
         dirName, '..', 'vdsm_api', 'vdsmapi-schema.json')
     return vdsmapi.get_api(apiPath)