Example #1
0
 def update_test(self, tuuid, patch):
     npatch = {}
     npatch['state'] = patch['state']
     npatch['id'] = patch['id']
     npatch['name'] = patch['name']
     npatch['result'] = patch['result']
     conn = dbapi.get_backend()
     conn.update_test(tuuid, npatch)
     return npatch
Example #2
0
 def update_test(self, tuuid, patch):
     npatch = {}
     npatch['state'] = patch['state']
     npatch['id'] = patch['id']
     npatch['name'] = patch['name']
     npatch['result'] = patch['result']
     conn = dbapi.get_backend()
     try:
         conn.update_test(tuuid, npatch)
     except Exception as e:
         LOG.debug("Unable to update test because of exception %s" % str(e))
     return npatch
Example #3
0
 def update_test(self, tuuid, patch):
     npatch = {}
     npatch['state'] = patch['state']
     npatch['id'] = patch['id']
     npatch['name'] = patch['name']
     npatch['result'] = patch['result']
     conn = dbapi.get_backend()
     try:
         conn.update_test(tuuid, npatch)
     except Exception as e:
         LOG.debug("Unable to update test because of exception %s" % str(e))
     return npatch
Example #4
0
def delete_old_entries():
    tasks = CONF.periodic_tests
    num_tests = CONF.database.max_db_entries
    num_range = len([key for key in tasks.keys() if int(tasks[key]) > 0])
    conn = dbapi.get_backend()
    conn.delete_old_tests(num_range, num_tests)
Example #5
0
def delete_old_entries():
    tasks = CONF.periodic_tests
    num_range = len([key for key in tasks.keys() if int(tasks[key]) > 0])
    conn = dbapi.get_backend()
    conn.delete_old_tests(num_range)