Exemplo n.º 1
0
 def test_A_putfile(self):
     cvsfile = h2o.find_file(file_to_put())
     node = h2o.nodes[0]
     key = node.put_file(cvsfile)
     resultSize = node.inspect(key)['value_size_bytes']
     origSize = h2o.get_file_size(cvsfile)
     self.assertEqual(origSize, resultSize)
Exemplo n.º 2
0
 def test_A_putfile(self):
     cvsfile    = h2o.find_file(file_to_put())
     node       = h2o.nodes[0]
     key        = node.put_file(cvsfile)
     resultSize = node.inspect(key)['value_size_bytes']
     origSize   = h2o.get_file_size(cvsfile)
     self.assertEqual(origSize,resultSize)
Exemplo n.º 3
0
    def test_B_putfile_to_all_nodes(self):

        cvsfile = h2o.find_file(file_to_put())
        origSize = h2o.get_file_size(cvsfile)
        for node in h2o.nodes:
            key = node.put_file(cvsfile)
            resultSize = node.inspect(key)['value_size_bytes']
            self.assertEqual(origSize, resultSize)
Exemplo n.º 4
0
    def test_B_putfile_to_all_nodes(self):

        cvsfile  = h2o.find_file(file_to_put())
        origSize = h2o.get_file_size(cvsfile)
        for node in h2o.nodes:
            key        = node.put_file(cvsfile)
            resultSize = node.inspect(key)['value_size_bytes']
            self.assertEqual(origSize,resultSize)
Exemplo n.º 5
0
    def test_A_putfile_to_all_nodes(self):
        csvfile  = h2o.find_file(file_to_put())
        origSize = h2o.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)
Exemplo n.º 6
0
    def test_A_putfile_to_all_nodes(self):
        csvfile  = file_to_put()
        print "csvfile:", csvfile
        origSize = h2o.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)