예제 #1
0
 def test01(self):
     """DBSPrimaryDataset.insertPrimaryDataset"""
     from dbs.business.DBSPrimaryDataset import DBSPrimaryDataset
     bo = DBSPrimaryDataset(self.logger, self.dbi)
     binput = {"primarydsname":"BUT_%s" % IC,
              "primarydstype":"TEST",
              "creationdate":1234,
              "createby":"*****@*****.**"}
     bo.insertPrimaryDataset(binput)
예제 #2
0
    def test01(self):
        """business.DBSPrimaryDataset.insertPrimaryDatasets: Basic"""
        dburl = os.environ["DBS_TEST_DBURL_WRITER"] 
        dbowner = os.environ["DBS_TEST_DBOWNER_WRITER"]
        dbi = DBFactory(self.logger, dburl).connect()
        
        bo = DBSPrimaryDataset(self.logger, dbi, dbowner)
        binput = {'primary_ds_name':self.primary_ds_name,
		          'primary_ds_type':'TEST'}
        bo.insertPrimaryDataset(binput)
예제 #3
0
 def test01(self):
     """DBSPrimaryDataset.insertPrimaryDataset"""
     from dbs.business.DBSPrimaryDataset import DBSPrimaryDataset
     bo = DBSPrimaryDataset(self.logger, self.dbi)
     binput = {
         "primarydsname": "BUT_%s" % IC,
         "primarydstype": "TEST",
         "creationdate": 1234,
         "createby": "*****@*****.**"
     }
     bo.insertPrimaryDataset(binput)
예제 #4
0
    def test01(self):
        """business.DBSPrimaryDataset.insertPrimaryDatasets: Basic"""
        dburl = os.environ["DBS_TEST_DBURL_WRITER"]
        dbowner = os.environ["DBS_TEST_DBOWNER_WRITER"]
        dbi = DBFactory(self.logger, dburl).connect()

        bo = DBSPrimaryDataset(self.logger, dbi, dbowner)
        binput = {
            'primary_ds_name': self.primary_ds_name,
            'primary_ds_type': 'TEST'
        }
        bo.insertPrimaryDataset(binput)
예제 #5
0
    def testPrimary(self):

        bo = DBSPrimaryDataset(self.logger, self.dbi, self.owner)
        binput = {"primary_ds_type": "test", "primary_ds_name": "anzar_0002"}
        bo.insertPrimaryDataset(binput)
예제 #6
0
    def testPrimary(self):
	
	bo = DBSPrimaryDataset(self.logger, self.dbi, self.owner)
	binput = {"primary_ds_type": "test", "primary_ds_name": "anzar_0002"}
	bo.insertPrimaryDataset(binput)