Ejemplo n.º 1
0
 def test_A_putfile(self):
     cvsfile = file_to_put()
     node = h2o.nodes[0]
     key = node.put_file(cvsfile)
     resultSize = node.inspect(key)['byteSize']
     origSize = h2o_util.get_file_size(cvsfile)
     self.assertEqual(origSize, resultSize)
Ejemplo n.º 2
0
 def test_B_putfile_to_all_nodes(self):
     cvsfile = file_to_put()
     origSize = h2o_util.get_file_size(cvsfile)
     for node in h2o.nodes:
         key = node.put_file(cvsfile)
         resultSize = node.inspect(key)['byteSize']
         self.assertEqual(origSize, resultSize)
Ejemplo n.º 3
0
 def test_A_putfile(self):
     cvsfile    = file_to_put()
     node       = h2o.nodes[0]
     key        = node.put_file(cvsfile)
     resultSize = node.inspect(key)['value_size_bytes']
     origSize   = h2o_util.get_file_size(cvsfile)
     self.assertEqual(origSize,resultSize)
Ejemplo n.º 4
0
 def test_B_putfile_to_all_nodes(self):
     cvsfile  = file_to_put()
     origSize = h2o_util.get_file_size(cvsfile)
     for node in h2o.nodes:
         key        = node.put_file(cvsfile)
         resultSize = node.inspect(key)['byteSize']
         self.assertEqual(origSize,resultSize)
Ejemplo n.º 5
0
 def test_A_putfile(self):
     h2o.beta_features = True
     cvsfile    = file_to_put()
     node       = h2o.nodes[0]
     key        = node.put_file(cvsfile)
     resultSize = node.inspect(key)['byteSize']
     origSize   = h2o_util.get_file_size(cvsfile)
     self.assertEqual(origSize,resultSize)
Ejemplo n.º 6
0
    def test_A_putfile_to_all_nodes(self):
        csvfile  = file_to_put()
        print "csvfile:", csvfile
        origSize = h2o_util.get_file_size(csvfile)

        # Putfile to each node and check the returned size
        for node in h2o.nodes:
            sys.stdout.write('.')
            sys.stdout.flush()
            h2o.verboseprint("put_file:", csvfile, "node:", node, "origSize:", origSize)
            key        = node.put_file(csvfile)
            resultSize = node.inspect(key)['value_size_bytes']
            self.assertEqual(origSize,resultSize)
Ejemplo n.º 7
0
    def test_A_putfile_to_all_nodes(self):
        csvfile = file_to_put()
        print "csvfile:", csvfile
        origSize = h2o_util.get_file_size(csvfile)

        # Putfile to each node and check the returned size
        for node in h2o.nodes:
            sys.stdout.write('.')
            sys.stdout.flush()
            h2o.verboseprint("put_file:", csvfile, "node:", node, "origSize:",
                             origSize)
            key = node.put_file(csvfile)
            resultSize = node.inspect(key)['value_size_bytes']
            self.assertEqual(origSize, resultSize)