def test_import_d5(self): db_path = self.setup_old_database('legacy_d5.sqlite') migration = legacy.LegacyMigration('sqlite:///%s' % db_path) migration.migrate_all() admin_id = '1' user_ref = self.identity_api.get_user(admin_id) self.assertEquals(user_ref['name'], 'admin') self.assertEquals(user_ref['enabled'], True) # check password hashing user_ref, tenant_ref, metadata_ref = self.identity_api.authenticate( user_id=admin_id, password='******') # check catalog self._check_catalog(migration)
def main(): from keystone.common.sql import legacy migration = legacy.LegacyMigration(CONF.command.old_db) print '\n'.join(migration.dump_catalog())
def main(): from keystone.common.sql import legacy migration = legacy.LegacyMigration(CONF.command.old_db) migration.migrate_all()