コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 def tearDown(self):
     self.removeRepository(DOMAIN, REPOSITORY, REPOSITORYGROUP)
     IntegrationTestCase.tearDown(self)
コード例 #5
0
 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)
コード例 #6
0
 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)
コード例 #7
0
 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)
コード例 #8
0
 def tearDown(self):
     self.removeRepository(DOMAIN, REPOSITORY, REPOSITORYGROUP)
     IntegrationTestCase.tearDown(self)