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)
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)
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)
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)
def testPrimary(self): bo = DBSPrimaryDataset(self.logger, self.dbi, self.owner) binput = {"primary_ds_type": "test", "primary_ds_name": "anzar_0002"} bo.insertPrimaryDataset(binput)