예제 #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)
예제 #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)
예제 #3
0
 def test212_remove_file(self):
     try:
         legoo.remove_file(file=self.hive_export_csv)
     except:
         self.fail("remove_file failed")
예제 #4
0
 def test110_remove_file(self):
     try:
         legoo.remove_file(file=self.mysql_export_csv)
     except:
         self.fail("remove_file failed")
예제 #5
0
 def test212_remove_file(self):
     try:
         legoo.remove_file(file=self.hive_export_csv)
     except:
         self.fail("remove_file failed")
예제 #6
0
 def test110_remove_file(self):
     try:
         legoo.remove_file(file=self.mysql_export_csv)
     except:
         self.fail("remove_file failed")