Remove unused run_sql_cmd
The run_sql_cmd method in functional tests is not used. The method uses Engine.execute() method which was removed in 2.0. Change-Id: I6f9ea1dfd852a2d311e17964da0ea56c052b3fda
This commit is contained in:
parent
0bcd6cd71c
commit
835e7f36a5
|
@ -1134,15 +1134,6 @@ class FunctionalTest(test_utils.BaseTestCase):
|
|||
if self.include_scrubber:
|
||||
self.stop_server(self.scrubber_daemon)
|
||||
|
||||
def run_sql_cmd(self, sql):
|
||||
"""
|
||||
Provides a crude mechanism to run manual SQL commands for backend
|
||||
DB verification within the functional tests.
|
||||
The raw result set is returned.
|
||||
"""
|
||||
engine = db_api.get_engine()
|
||||
return engine.execute(sql)
|
||||
|
||||
def copy_data_file(self, file_name, dst_dir):
|
||||
src_file_name = os.path.join('glance/tests/etc', file_name)
|
||||
shutil.copy(src_file_name, dst_dir)
|
||||
|
@ -1486,15 +1477,6 @@ class MultipleBackendFunctionalTest(test_utils.BaseTestCase):
|
|||
if self.include_scrubber:
|
||||
self.stop_server(self.scrubber_daemon)
|
||||
|
||||
def run_sql_cmd(self, sql):
|
||||
"""
|
||||
Provides a crude mechanism to run manual SQL commands for backend
|
||||
DB verification within the functional tests.
|
||||
The raw result set is returned.
|
||||
"""
|
||||
engine = db_api.get_engine()
|
||||
return engine.execute(sql)
|
||||
|
||||
def copy_data_file(self, file_name, dst_dir):
|
||||
src_file_name = os.path.join('glance/tests/etc', file_name)
|
||||
shutil.copy(src_file_name, dst_dir)
|
||||
|
|
Loading…
Reference in New Issue