示例#1
0
 def setUp(self):
     if not os.getenv("ZOOKEEPER_HOME"):
         self.fail(
             "ZOOKEEPER_HOME environment variable is not set please set the location of ZOOKEEPER home in this environment variable"
         )
         return
     TestUtilsMixin.setUp(self)
    def setUp(self):
        TestUtilsMixin.setUp(self)

        # initialize the database
        self.createTable('test_ingest')

        # start test ingestion
        log.info("Starting Test Ingester")
        self.ingester = self.ingest(self.masterHost(),
                                    self.options.rows * 10,
                                    size=self.options.size)
示例#3
0
 def setUp(self):
     TestUtilsMixin.setUp(self);
     
     # initialize the database
     self.createTable('test_ingest')
     
     # start test ingestion
     log.info("Starting Test Ingester")
     self.ingester = self.ingest(self.masterHost(),
                                 self.options.rows,
                                 timestamp=time.time() * 1000)
示例#4
0
 def setUp(self):
     TestUtilsMixin.setUp(self);
     
     # initialize the database
     self.createTable('test_ingest')
     
     # start test ingestion
     log.info("Starting Test Ingester")
     self.ingester = self.ingest(self.masterHost(),
                                 self.options.rows,
                                 size=self.options.size)
示例#5
0
    def setUp(self):
        handle = self.runJTest('localhost','getConfig')
        out,err = handle.communicate()
        log.debug(out)
        log.debug(err)
        assert handle.returncode==0

        self.settings = TestUtilsMixin.settings.copy()
        self.settings.update(eval(out))
        TestUtilsMixin.setUp(self);

        handle = self.runJTest(self.masterHost(),'setup')
        out,err = handle.communicate()
        log.debug(out)
        log.debug(err)
        assert handle.returncode==0
示例#6
0
    def setUp(self):
        handle = self.runJTest('localhost','getConfig')
        out,err = handle.communicate()
        log.debug(out)
        log.debug(err)
        assert handle.returncode==0

        self.settings = TestUtilsMixin.settings.copy()
        self.settings.update(eval(out))
        TestUtilsMixin.setUp(self);

        handle = self.runJTest(self.masterHost(),'setup')
        out,err = handle.communicate()
        log.debug(out)
        log.debug(err)
        assert handle.returncode==0
    def setUp(self):
        # ensure we have two servers
        if len(self.options.hosts) == 1:
            self.options.hosts.append('localhost')
        self.options.hosts = self.options.hosts[:2]
        
        TestUtilsMixin.setUp(self);

        # create a table with 200 splits
        import tempfile
        fileno, filename = tempfile.mkstemp()
        fp = os.fdopen(fileno, "wb")
        try:
            for i in range(200):
                fp.write("%08x\n" % (i * 1000))
        finally:
            fp.close()
        self.createTable('unused', filename)

        # create an empty table
        self.createTable('test_ingest')
示例#8
0
    def setUp(self):
        # ensure we have two servers
        if len(self.options.hosts) == 1:
            self.options.hosts.append('localhost')
        self.options.hosts = self.options.hosts[:2]

        TestUtilsMixin.setUp(self)

        # create a table with 200 splits
        import tempfile
        fileno, filename = tempfile.mkstemp()
        fp = os.fdopen(fileno, "wb")
        try:
            for i in range(200):
                fp.write("%08x\n" % (i * 1000))
        finally:
            fp.close()
        self.createTable('unused', filename)

        # create an empty table
        self.createTable('test_ingest')
示例#9
0
 def setUp(self):
     TestUtilsMixin.setUp(self)
示例#10
0
 def tearDown(self):
     TestUtilsMixin.tearDown(self)
     os.unlink(self.splitfile)
示例#11
0
    def setUp(self):
        # make sure the combiner is not there
        if os.path.exists(jarPath):
            os.remove(jarPath)
	TestUtilsMixin.setUp(self)
示例#12
0
 def setUp(self):
     if not os.getenv("ZOOKEEPER_HOME"):
         self.fail("ZOOKEEPER_HOME environment variable is not set please set the location of ZOOKEEPER home in this environment variable")
         return
     TestUtilsMixin.setUp(self)
示例#13
0
 def setUp(self):
     TestUtilsMixin.setUp(self);
示例#14
0
    def setUp(self):
        TestUtilsMixin.setUp(self)

        # initialize the database
        self.createTable('test_ingest')
示例#15
0
 def tearDown(self):
     TestUtilsMixin.tearDown(self)
     self.pkill(self.masterHost(), 'TestIngest')
示例#16
0
 def setUp(self):
     # make sure the combiner is not there
     if os.path.exists(jarPath):
         os.remove(jarPath)
     TestUtilsMixin.setUp(self)
示例#17
0
 def tearDown(self):
     TestUtilsMixin.tearDown(self)
示例#18
0
 def tearDown(self):
     TestUtilsMixin.tearDown(self)
     self.pkill(self.masterHost(), 'TestIngest')
示例#19
0
 def tearDown(self):
     TestUtilsMixin.tearDown(self);
示例#20
0
 def setUp(self):
     TestUtilsMixin.setUp(self);
     
     # initialize the database
     self.createTable("bt")
示例#21
0
 def tearDown(self):
     TestUtilsMixin.tearDown(self)
     os.unlink(self.splitfile)
示例#22
0
 def setUp(self):
     TestUtilsMixin.setUp(self);
     self.test("split","bt","8","256")