diff options
author | Adam Young <ayoung@redhat.com> | 2013-05-24 16:45:39 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2013-05-31 13:58:42 -0400 |
commit | 62abd5d85384416dc05aa0a449dab1694caec3e8 (patch) | |
tree | 635f77877d47d676c7008f6d6430adcf7e3bdd1a /tests/test_sql_upgrade.py | |
parent | d67e31b70ca648c8ca0a3cb76f421b3be257d4c5 (diff) | |
download | keystone-62abd5d85384416dc05aa0a449dab1694caec3e8.tar.gz keystone-62abd5d85384416dc05aa0a449dab1694caec3e8.tar.xz keystone-62abd5d85384416dc05aa0a449dab1694caec3e8.zip |
Live SQL migration tests
Make it possible to run the migration tests for the supported databases
without editing the config files.
Blueprint live-sql-gate
Change-Id: Iaf14ad42333b0a0cd1f7d0fb37f135a8bf7af14a
Diffstat (limited to 'tests/test_sql_upgrade.py')
-rw-r--r-- | tests/test_sql_upgrade.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/test_sql_upgrade.py b/tests/test_sql_upgrade.py index 51ac2b7d..59a8800c 100644 --- a/tests/test_sql_upgrade.py +++ b/tests/test_sql_upgrade.py @@ -50,11 +50,18 @@ class SqlUpgradeTests(test.TestCase): self.metadata = sqlalchemy.MetaData() self.metadata.bind = self.engine + _config_file_list = [test.etcdir('keystone.conf.sample'), + test.testsdir('test_overrides.conf'), + test.testsdir('backend_sql.conf')] + + #override this to sepcify the complete list of configuration files + def config_files(self): + return self._config_file_list + def setUp(self): super(SqlUpgradeTests, self).setUp() - self.config([test.etcdir('keystone.conf.sample'), - test.testsdir('test_overrides.conf'), - test.testsdir('backend_sql.conf')]) + + self.config(self.config_files()) self.base = sql.Base() # create and share a single sqlalchemy engine for testing |