summaryrefslogtreecommitdiffstats
path: root/tests/test_import_legacy.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_import_legacy.py')
-rw-r--r--tests/test_import_legacy.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test_import_legacy.py b/tests/test_import_legacy.py
index bafc076a..9e164099 100644
--- a/tests/test_import_legacy.py
+++ b/tests/test_import_legacy.py
@@ -25,7 +25,6 @@ from keystone import test
from keystone.catalog.backends import templated as catalog_templated
from keystone.common.sql import legacy
-from keystone.common.sql import util as sql_util
from keystone import config
from keystone import identity
from keystone.identity.backends import sql as identity_sql
@@ -41,17 +40,17 @@ class ImportLegacy(test.TestCase):
test.testsdir('test_overrides.conf'),
test.testsdir('backend_sql.conf'),
test.testsdir('backend_sql_disk.conf')])
- sql_util.setup_test_database()
+ test.setup_test_database()
self.identity_man = identity.Manager()
self.identity_api = identity_sql.Identity()
def tearDown(self):
- sql_util.teardown_test_database()
+ test.teardown_test_database()
super(ImportLegacy, self).tearDown()
def setup_old_database(self, sql_dump):
sql_path = test.testsdir(sql_dump)
- db_path = test.testsdir('%s.db' % sql_dump)
+ db_path = test.tmpdir('%s.db' % sql_dump)
try:
os.unlink(db_path)
except OSError:
@@ -73,7 +72,7 @@ class ImportLegacy(test.TestCase):
self.assertEquals(user_ref['enabled'], True)
# check password hashing
- user_ref, tenant_ref, metadata_ref = self.identity_man.authenticate(
+ user_ref = self.identity_man.authenticate(
user_id=admin_id, password='secrete')
# check catalog
@@ -90,7 +89,7 @@ class ImportLegacy(test.TestCase):
self.assertEquals(user_ref['enabled'], True)
# check password hashing
- user_ref, tenant_ref, metadata_ref = self.identity_man.authenticate(
+ user_ref = self.identity_man.authenticate(
user_id=admin_id, password='secrete')
# check catalog
@@ -107,7 +106,7 @@ class ImportLegacy(test.TestCase):
self.assertEquals(user_ref['enabled'], True)
# check password hashing
- user_ref, tenant_ref, metadata_ref = self.identity_man.authenticate(
+ user_ref = self.identity_man.authenticate(
user_id=admin_id, password='secrete')
# check catalog