run all teh keystoneclient tests against sql too
parent
0f6a9a78d9
commit
4b4ada27ca
@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
from keystonelight import config
|
||||
from keystonelight.backends.sql import migration
|
||||
|
||||
|
||||
CONF = config.CONF
|
||||
|
||||
|
||||
def setup_test_database():
|
||||
# TODO(termie): be smart about this
|
||||
try:
|
||||
os.unlink('bla.db')
|
||||
except Exception:
|
||||
pass
|
||||
migration.db_sync()
|
@ -0,0 +1,9 @@
|
||||
[sql]
|
||||
connection = sqlite:///bla.db
|
||||
idle_timeout = 200
|
||||
min_pool_size = 5
|
||||
max_pool_size = 10
|
||||
pool_timeout = 200
|
||||
|
||||
[identity]
|
||||
driver = keystonelight.backends.sql.SqlIdentity
|
@ -0,0 +1,16 @@
|
||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||
from keystonelight import config
|
||||
from keystonelight import test
|
||||
from keystonelight.backends.sql import util as sql_util
|
||||
from keystonelight.backends.sql import migration
|
||||
|
||||
import test_keystoneclient
|
||||
|
||||
|
||||
CONF = config.CONF
|
||||
|
||||
|
||||
class KcMasterSqlTestCase(test_keystoneclient.KcMasterTestCase):
|
||||
def _config(self):
|
||||
CONF(config_files=['default.conf', 'backend_sql.conf'])
|
||||
sql_util.setup_test_database()
|
Loading…
Reference in New Issue