def testWorkQueueService(self): # test getWork wmbsApi = WMBS(self.params) self.assertEqual(wmbsApi.getResourceInfo(), []) self.assertEqual(wmbsApi.getResourceInfo(tableFormat=False), {})
def testWorkQueueService(self): # test getWork wmbsApi = WMBS(self.params) self.assertEqual(wmbsApi.getResourceInfo(), []) self.assertEqual(wmbsApi.getResourceInfo(tableFormat = False), {})
def getRequestInfoFromWMBS(serviceURL, jobStatusInfo): service = WMBS({'endpoint':serviceURL}) try: batchJobs = service.getBatchJobStatus() except Exception, ex: logging.error("%s: %s" % (serviceURL, str(ex))) return DFormatter.errorFormatter(serviceURL, "WMBS Service Dowtn")
def getSiteInfoFromWMBSService(serviceURL): wmbsSvc = WMBS({'endpoint': serviceURL}) try: batchJobs = wmbsSvc.getBatchJobStatusBySite() completeJobs = wmbsSvc.getSiteSummaryFromCouchDB() _combineSites(completeJobs, batchJobs) return completeJobs except Exception, ex: logging.warning("Error: %s" % str(ex)) return []