Ejemplo n.º 1
0
    def testOutputConfig(self):
	"""
	This method can be used to test OutputConfig Buisiness Object

	"""
        bo = DBSOutputConfig(self.logger, self.dbi, self.owner)
	binput = {'app_name': 'Re1-Repacker', 'release_version': 'CMSSW_12_1_8',  'pset_hash': 'N11O_PSET_HASH', 'output_module_label' : 'outmod_test_label_12', 'creation_date' : 1234, 'create_by' : 'anzar' }
        bo.insertOutputConfig(binput)
Ejemplo n.º 2
0
    def testOutputConfig(self):
        """
	This method can be used to test OutputConfig Buisiness Object

	"""
        bo = DBSOutputConfig(self.logger, self.dbi, self.owner)
        binput = {
            'app_name': 'Re1-Repacker',
            'release_version': 'CMSSW_12_1_8',
            'pset_hash': 'N11O_PSET_HASH',
            'output_module_label': 'outmod_test_label_12',
            'creation_date': 1234,
            'create_by': 'anzar'
        }
        bo.insertOutputConfig(binput)
Ejemplo n.º 3
0
    def test02(self):
        """business.DBSOutputConfig.listOutputConfig: Basic"""
        dburl = os.environ["DBS_TEST_DBURL_READER"] 
        dbowner = os.environ["DBS_TEST_DBOWNER_READER"]
        dbi = DBFactory(self.logger, dburl).connect()
        bo = DBSOutputConfig(self.logger, dbi, dbowner)

        bo.listOutputConfigs()
        bo.listOutputConfigs(dataset='%')
        bo.listOutputConfigs(logical_file_name='%')
        bo.listOutputConfigs(release_version='%')
        bo.listOutputConfigs(pset_hash='%')
        bo.listOutputConfigs(app_name='%')
        bo.listOutputConfigs(output_module_label='%')
        
        bo.listOutputConfigs(dataset='%', release_version='%')
Ejemplo n.º 4
0
    def test02(self):
        """business.DBSOutputConfig.listOutputConfig: Basic"""
        dburl = os.environ["DBS_TEST_DBURL_READER"]
        dbowner = os.environ["DBS_TEST_DBOWNER_READER"]
        dbi = DBFactory(self.logger, dburl).connect()
        bo = DBSOutputConfig(self.logger, dbi, dbowner)

        bo.listOutputConfigs()
        bo.listOutputConfigs(dataset='%')
        bo.listOutputConfigs(logical_file_name='%')
        bo.listOutputConfigs(release_version='%')
        bo.listOutputConfigs(pset_hash='%')
        bo.listOutputConfigs(app_name='%')
        bo.listOutputConfigs(output_module_label='%')

        bo.listOutputConfigs(dataset='%', release_version='%')