Example #1
0
 def runTest(self):
     commands = {}
     for i, s in enumerate(slaveNames()):
         commands[
             s] = '%s %s -u %s -p %s --size %d --random %d --rows %d --start %d --cols %d' % (
                 accumulo('bin', 'accumulo'),
                 'org.apache.accumulo.test.TestIngest',
                 self.username, self.password, self.size(), self.random(),
                 self.count(), i * self.count(), 1)
     results = runEach(commands)
     codes = {}
     for slave, (code, out, err) in results.items():
         codes.setdefault(code, [])
         codes[code].append(slave)
     for code, slaves in codes.items():
         if code != 0:
             self.assertEqual(
                 code, 0,
                 "Bad exit code (%d) from slaves %r" % (code, slaves))
Example #2
0
 def runTest(self):
     commands = {}
     for i, s in enumerate(slaveNames()):
         commands[s] = '%s %s -u %s -p %s --size %d --random %d --rows %d --start %d --cols %d' % (
             accumulo('bin', 'accumulo'),
             'org.apache.accumulo.test.TestIngest',
             self.username, self.password,
             self.size(),
             self.random(),
             self.count(),
             i*self.count(),
             1)
     results = runEach(commands)
     codes = {}
     for slave, (code, out, err) in results.items():
         codes.setdefault(code, [])
         codes[code].append(slave)
     for code, slaves in codes.items():
         if code != 0:
             self.assertEqual(code, 0, "Bad exit code (%d) from slaves %r" % (code, slaves))
Example #3
0
 def runTest(self):
     commands = {}
     for i, s in enumerate(slaveNames()):
         commands[
             s] = '%s %s -username %s -password %s -size %d -random %d %d %d %d' % (
                 accumulo('bin', 'accumulo'),
                 'org.apache.accumulo.server.test.TestIngest',
                 self.username, self.password, self.size(), self.random(),
                 self.count(), i * self.count(), 1)
     results = runEach(commands)
     codes = {}
     for slave, (code, out, err) in results.items():
         codes.setdefault(code, [])
         codes[code].append(slave)
     for code, slaves in codes.items():
         if code != 0:
             self.assertEqual(
                 code, 0,
                 "Bad exit code (%d) from slaves %r" % (code, slaves))
     command = 'deletetable test_ingest\n'
     log.debug("Running Command %r", command)
     code, out, err = cloudshell.run(self.username, self.password, command)
Example #4
0
 def runTest(self):
     commands = {}
     for i, s in enumerate(slaveNames()):
         commands[s] = '%s %s -username %s -password %s -size %d -random %d %d %d %d' % (
             accumulo('bin', 'accumulo'),
             'org.apache.accumulo.server.test.TestIngest',
             self.username, self.password,
             self.size(),
             self.random(),
             self.count(),
             i*self.count(),
             1)
     results = runEach(commands)
     codes = {}
     for slave, (code, out, err) in results.items():
         codes.setdefault(code, [])
         codes[code].append(slave)
     for code, slaves in codes.items():
         if code != 0:
             self.assertEqual(code, 0, "Bad exit code (%d) from slaves %r" % (code, slaves))
     command = 'deletetable test_ingest\n'
     log.debug("Running Command %r", command)
     code, out, err = cloudshell.run(self.username, self.password, command)