Ejemplo n.º 1
0
    def test999_clean_up(self):
        # drop MySQL test table
        ddl = "drop table if exists %s.%s" % (self.mysql_db, self.mysql_table)
        legoo.execute_mysql_query(mysql_host=self.mysql_host, mysql_db=self.mysql_db, mysql_query=ddl)

        # drop HIVE test table
        ddl = "drop table if exists %s.%s" % (self.hive_db, self.hive_table)
        legoo.execute_remote_hive_query(hive_node=self.hive_node, hive_db=self.hive_db, hive_query=ddl)

        # remove test csv from hive export
        legoo.remove_file(file=self.hive_export_csv)
        # remove test csv from mysql export
        legoo.remove_file(file=self.mysql_export_csv)
Ejemplo n.º 2
0
    def test999_clean_up(self):
        # drop MySQL test table
        ddl = "drop table if exists %s.%s" % (self.mysql_db, self.mysql_table)
        legoo.execute_mysql_query(mysql_host     = self.mysql_host, \
                                  mysql_db       = self.mysql_db, \
                                  mysql_query    = ddl)

        # drop HIVE test table
        ddl = "drop table if exists %s.%s" % (self.hive_db, self.hive_table)
        legoo.execute_remote_hive_query(hive_node  = self.hive_node, \
                                        hive_db    = self.hive_db, \
                                        hive_query = ddl)

        # remove test csv from hive export
        legoo.remove_file(file=self.hive_export_csv)
        # remove test csv from mysql export
        legoo.remove_file(file=self.mysql_export_csv)
Ejemplo n.º 3
0
 def test212_remove_file(self):
     try:
         legoo.remove_file(file=self.hive_export_csv)
     except:
         self.fail("remove_file failed")
Ejemplo n.º 4
0
 def test110_remove_file(self):
     try:
         legoo.remove_file(file=self.mysql_export_csv)
     except:
         self.fail("remove_file failed")
Ejemplo n.º 5
0
 def test212_remove_file(self):
     try:
         legoo.remove_file(file=self.hive_export_csv)
     except:
         self.fail("remove_file failed")
Ejemplo n.º 6
0
 def test110_remove_file(self):
     try:
         legoo.remove_file(file=self.mysql_export_csv)
     except:
         self.fail("remove_file failed")