|
@ -110,7 +110,8 @@ class Entity: |
|
|
self.ddls[entityname][model.table.LISTNAME_FIELDS] = listFields |
|
|
self.ddls[entityname][model.table.LISTNAME_FIELDS] = listFields |
|
|
self.ddls[entityname][model.table.LISTNAME_NODES] = listNodes |
|
|
self.ddls[entityname][model.table.LISTNAME_NODES] = listNodes |
|
|
self.ddls[entityname][model.table.LISTNAME_SUBTABLE] = listSubtables |
|
|
self.ddls[entityname][model.table.LISTNAME_SUBTABLE] = listSubtables |
|
|
# check LISTEN |
|
|
# check LISTEN ... hard coded vs. configuered |
|
|
|
|
|
# TODO why hard coded const ?? |
|
|
for f in listFields: |
|
|
for f in listFields: |
|
|
if f not in self.LIST_FIELDS: |
|
|
if f not in self.LIST_FIELDS: |
|
|
raise Exception(entityname + " " + str(self) + " a check list <-> LIST_FIELDS " + f) |
|
|
raise Exception(entityname + " " + str(self) + " a check list <-> LIST_FIELDS " + f) |
|
@ -133,15 +134,17 @@ class Entity: |
|
|
raise Exception(entityname + " " + str(self) + " b check list <-> LIST_SUBTABLES " + f) |
|
|
raise Exception(entityname + " " + str(self) + " b check list <-> LIST_SUBTABLES " + f) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_unique_names(self, job, storage="", project="", application="", gran="", args={}, ttype: str=""): |
|
|
def get_unique_names(self, job, storage = "", project = "", application = "", gran = "", |
|
|
|
|
|
ttype: str = "", args: dict = {}) -> list: |
|
|
""" |
|
|
""" |
|
|
gets the entity-names from the defined storage - the field name must be an unique identifier |
|
|
gets the entity-names from the defined storage - the field name must be an unique identifier |
|
|
:param job: |
|
|
:param job: |
|
|
:param opt. storage: values db / files - default files |
|
|
:param storage: opt. values db / files - default files |
|
|
:param opt. project: select-criteria if used and defined |
|
|
:param project: opt. select-criteria if used and defined |
|
|
:param opt. application: select-criteria if used and defined |
|
|
:param application: opt. select-criteria if used and defined |
|
|
:param opt. gran: granularity values testcase / testsuite / testplan |
|
|
:param gran: opt. granularity values testcase / testsuite / testplan |
|
|
:param opt. args additional args |
|
|
:param ttype: opt. ddd |
|
|
|
|
|
:param args: opt. additional args |
|
|
:return: list of entity-names |
|
|
:return: list of entity-names |
|
|
""" |
|
|
""" |
|
|
entityNames = [] |
|
|
entityNames = [] |
|
@ -157,10 +160,10 @@ class Entity: |
|
|
""" |
|
|
""" |
|
|
reads the entity-names from file-storage |
|
|
reads the entity-names from file-storage |
|
|
:param job: |
|
|
:param job: |
|
|
:param opt. project: select-criteria if used and defined |
|
|
:param project: opt. select-criteria if used and defined |
|
|
:param opt. application: select-criteria if used and defined |
|
|
:param application: opt. select-criteria if used and defined |
|
|
:param opt. gran: granularity values testcase / testsuite / testplan |
|
|
:param gran: opt. granularity values testcase / testsuite / testplan |
|
|
:param opt. args additional args |
|
|
:param args: opt. additional args |
|
|
:return: list of entity-names |
|
|
:return: list of entity-names |
|
|
""" |
|
|
""" |
|
|
raise Exception(B.EXCEPT_NOT_IMPLEMENT) |
|
|
raise Exception(B.EXCEPT_NOT_IMPLEMENT) |
|
@ -169,11 +172,11 @@ class Entity: |
|
|
""" |
|
|
""" |
|
|
gets the entity-names from the defined storage |
|
|
gets the entity-names from the defined storage |
|
|
:param job: |
|
|
:param job: |
|
|
:param opt. storage: values db / files - default files |
|
|
:param storage: opt. values db / files - default files |
|
|
:param opt. project: select-criteria if used and defined |
|
|
:param project: opt. select-criteria if used and defined |
|
|
:param opt. application: select-criteria if used and defined |
|
|
:param application: opt. select-criteria if used and defined |
|
|
:param opt. gran: granularity values testcase / testsuite / testplan |
|
|
:param gran: opt. granularity values testcase / testsuite / testplan |
|
|
:param opt. args additional args |
|
|
:param args: opt. additional args |
|
|
:return: list of entity-names |
|
|
:return: list of entity-names |
|
|
""" |
|
|
""" |
|
|
entities = [] |
|
|
entities = [] |
|
@ -194,10 +197,10 @@ class Entity: |
|
|
""" |
|
|
""" |
|
|
reads the entity-names from file-storage |
|
|
reads the entity-names from file-storage |
|
|
:param job: |
|
|
:param job: |
|
|
:param opt. project: select-criteria if used and defined |
|
|
:param project: select-criteria if used and defined |
|
|
:param opt. application: select-criteria if used and defined |
|
|
:param application: select-criteria if used and defined |
|
|
:param opt. gran: granularity values testcase / testsuite / testplan |
|
|
:param gran: granularity values testcase / testsuite / testplan |
|
|
:param opt. args additional args |
|
|
:param args additional args |
|
|
:return: list of entity-names |
|
|
:return: list of entity-names |
|
|
""" |
|
|
""" |
|
|
raise Exception(B.EXCEPT_NOT_IMPLEMENT) |
|
|
raise Exception(B.EXCEPT_NOT_IMPLEMENT) |
|
@ -603,6 +606,9 @@ class Entity: |
|
|
sql = dbi.getSchemaIndex(table, "actual") + "\n" |
|
|
sql = dbi.getSchemaIndex(table, "actual") + "\n" |
|
|
return sql |
|
|
return sql |
|
|
|
|
|
|
|
|
|
|
|
def get_schema(self, tableName, tableObject): |
|
|
|
|
|
pass |
|
|
|
|
|
|
|
|
def insert_entity(self, job): |
|
|
def insert_entity(self, job): |
|
|
""" |
|
|
""" |
|
|
inserts the entity into the database |
|
|
inserts the entity into the database |
|
@ -634,3 +640,4 @@ def read_spec(job, testentity, testgran, specpath): |
|
|
spec[key] = val |
|
|
spec[key] = val |
|
|
return spec |
|
|
return spec |
|
|
|
|
|
|
|
|
|
|
|
|
|
|