def tearDown(self): """tearDown""" WorkQueueTestCase.tearDown(self) try: self.specGenerator.removeSpecs() except: pass EmulatorHelper.resetEmulators()
def setUp(self): """ If we dont have a wmspec file create one """ EmulatorHelper.setEmulators(phedex = True, dbs = True, siteDB = True, requestMgr = True) WorkQueueTestCase.setUp(self) self.cacheDir = tempfile.mkdtemp() self.specGenerator = WMSpecGenerator(self.cacheDir) self.specs = self.createReRecoSpec(1, "file") # Create queues self.localQueue = localQueue(DbName = self.queueDB, InboxDbName = self.queueInboxDB, NegotiationTimeout = 0, QueueURL = 'global.example.com', CacheDir = self.cacheDir)
def setUp(self): """ If we dont have a wmspec file create one """ EmulatorHelper.setEmulators(phedex=True, dbs=True, siteDB=True, requestMgr=True) WorkQueueTestCase.setUp(self) self.cacheDir = tempfile.mkdtemp() self.specGenerator = WMSpecGenerator(self.cacheDir) self.specs = self.createReRecoSpec(1, "file") # Create queues self.localQueue = localQueue(DbName=self.queueDB, InboxDbName=self.queueInboxDB, NegotiationTimeout=0, QueueURL='global.example.com', CacheDir=self.cacheDir)
def setUp(self): """ If we dont have a wmspec file create one Warning: For the real profiling test including spec generation. need to use real spec instead of using emulator generated spec which doesn't include couchDB access and cmssw access """ EmulatorHelper.setEmulators(phedex = True, dbs = True, siteDB = True, requestMgr = True) WorkQueueTestCase.setUp(self) self.cacheDir = tempfile.mkdtemp() self.specGenerator = WMSpecGenerator(self.cacheDir) self.specNamePrefix = "TestReReco_" self.specs = self.createReRecoSpec(5, "file") # Create queues self.globalQueue = globalQueue(DbName = self.globalQDB, InboxDbName = self.globalQInboxDB, NegotiationTimeout = 0)
def setUp(self): """ If we dont have a wmspec file create one Warning: For the real profiling test including spec generation. need to use real spec instead of using emulator generated spec which doesn't include couchDB access and cmssw access """ EmulatorHelper.setEmulators(phedex=True, dbs=True, siteDB=True, requestMgr=True) WorkQueueTestCase.setUp(self) self.cacheDir = tempfile.mkdtemp() self.specGenerator = WMSpecGenerator(self.cacheDir) self.specNamePrefix = "TestReReco_" self.specs = self.createReRecoSpec(5, "file") # Create queues self.globalQueue = globalQueue(DbName=self.globalQDB, InboxDbName=self.globalQInboxDB, NegotiationTimeout=0)