def setUp(self): IntegrationTestCase.setUp(self) self._path = "/default" header, body = postRequest( self.luceneServerPort, self._path + "/settings/", data=JsonDict(commitCount=1).dumps() ) self.assertTrue("200 OK" in header.upper(), header)
def setUp(self): IntegrationTestCase.setUp(self) system("rm -rf %s" % self.harvesterLogDir) system("rm -rf %s" % self.harvesterStateDir) self.filesystemDir = join(self.integrationTempdir, 'filesystem') system("rm -rf %s" % self.filesystemDir) self.emptyDumpDir() system("mkdir -p %s" % join(self.harvesterStateDir, DOMAIN)) self.harvesterData = HarvesterData(join(self.integrationTempdir, 'data')) try: self.harvesterData.addRepositoryGroup(identifier=REPOSITORYGROUP, domainId=DOMAIN) except ValueError: pass self.saveRepository(DOMAIN, REPOSITORY, REPOSITORYGROUP)
def setUp(self): IntegrationTestCase.setUp(self) system("rm -rf %s" % self.harvesterLogDir) system("rm -rf %s" % self.harvesterStateDir) self.filesystemDir = join(self.integrationTempdir, 'filesystem') system("rm -rf %s" % self.filesystemDir) self.controlHelper(action='reset') self.emptyDumpDir() self.domainStatePath = pathlib.Path(self.harvesterStateDir) / DOMAIN self.domainLogPath = pathlib.Path(self.harvesterLogDir) / DOMAIN self.domainStatePath.mkdir(parents=True) self.domainLogPath.mkdir(parents=True) self.harvesterData = HarvesterData( join(self.integrationTempdir, 'data')) try: self.harvesterData.addRepositoryGroup(identifier=REPOSITORYGROUP, domainId=DOMAIN) except ValueError: pass self.saveRepository(DOMAIN, REPOSITORY, REPOSITORYGROUP)
def tearDown(self): self.removeRepository(DOMAIN, REPOSITORY, REPOSITORYGROUP) IntegrationTestCase.tearDown(self)
def setUp(self): IntegrationTestCase.setUp(self) self._path = "/default" header, body = postRequest(self.luceneServerPort, self._path + '/settings/', data=JsonDict(commitCount=1).dumps()) self.assertTrue("200 OK" in header.upper(), header)
def setUp(self): IntegrationTestCase.setUp(self) self.controlHelper(action='reset') system("rm -rf %s/*" % self.dumpDir) system("rm -rf %s" % self.harvesterLogDir) system("rm -rf %s" % self.harvesterStateDir)