コード例 #1
0
ファイル: TestManager.py プロジェクト: baikai/cloudpulse
 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
コード例 #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
コード例 #3
0
ファイル: TestManager.py プロジェクト: openstack/cloudpulse
 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
コード例 #4
0
ファイル: timerthread.py プロジェクト: kirubajohn/cloudpulse
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)
コード例 #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)