def testPromptSkim(self): """ _testPromptSkim_ Verify that PromptSkim workflows can be created. Note that this requires a system that has all of the cms software installed on it. """ dataProcArguments = getTestArguments() dataProcArguments["CouchUrl"] = os.environ["COUCHURL"] dataProcArguments["CouchDBName"] = "promptskim_t" testWorkload = promptSkimWorkload("TestWorkload", dataProcArguments) return
def testPromptSkimB(self): """ _testPromptSkimB_ Verify that a PromptSkim workflow is not created when a inexistent correct url is passed. Note that this requires a system that has all of the cms software installed on it. """ dataProcArguments = getTestArguments() dataProcArguments["SkimConfig"] = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/Configuration/Skimming/test/tier1/IAmCorrectButIDontExist?revision=1.4" dataProcArguments["CouchURL"] = os.environ["COUCHURL"] dataProcArguments["EnvPath"] = os.environ.get("EnvPath", None) dataProcArguments["BinPath"] = os.environ.get("BinPath", None) dataProcArguments["CouchDBName"] = "promptskim_t" self.assertRaises(Exception, promptSkimWorkload, *["TestWorkload", dataProcArguments]) return
def testPromptSkimA(self): """ _testPromptSkimA_ Verify that PromptSkim workflows can be created. Note that this requires a system that has all of the cms software installed on it. """ dataProcArguments = getTestArguments() dataProcArguments["CouchURL"] = os.environ["COUCHURL"] dataProcArguments["CouchDBName"] = "promptskim_t" dataProcArguments["EnvPath"] = os.environ.get("EnvPath", None) dataProcArguments["BinPath"] = os.environ.get("BinPath", None) testWorkload = promptSkimWorkload("TestWorkload", dataProcArguments) #Test another processing version flavor dataProcArguments["ProcessingVersion"] = "v1" testWorkload = promptSkimWorkload("TestWorkload2", dataProcArguments) return
def testPromptSkimB(self): """ _testPromptSkimB_ Verify that a PromptSkim workflow is not created when a inexistent correct url is passed. Note that this requires a system that has all of the cms software installed on it. """ dataProcArguments = getTestArguments() dataProcArguments[ "SkimConfig"] = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/Configuration/Skimming/test/tier1/IAmCorrectButIDontExist?revision=1.4" dataProcArguments["CouchURL"] = os.environ["COUCHURL"] dataProcArguments["EnvPath"] = os.environ.get("EnvPath", None) dataProcArguments["BinPath"] = os.environ.get("BinPath", None) dataProcArguments["CouchDBName"] = "promptskim_t" self.assertRaises(Exception, promptSkimWorkload, *["TestWorkload", dataProcArguments]) return