From 9427db0712acd1e5274f7b653a876807110e0c73 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Tue, 21 May 2013 18:59:57 -0500 Subject: Ec2 credentials table not created during testing This change makes it so that the SQL Ec2Credential unit tests can be run individually. It does this by making sure the credential table model is available before the tables are created. Before this change, you couldn't run these tests individually and would get an error that the ec2_credential table doesn't exist. Part of fix for bug 1179259 Change-Id: I68c8b91b18ac0065628c979e5bcc56152ae14916 --- keystone/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystone/test.py b/keystone/test.py index 0c51d76d..2c2be577 100644 --- a/keystone/test.py +++ b/keystone/test.py @@ -44,6 +44,7 @@ from keystone.common import sql from keystone.common import utils from keystone.common import wsgi from keystone import config +from keystone.contrib import ec2 from keystone import credential from keystone import exception from keystone import identity @@ -252,7 +253,7 @@ class TestCase(NoModule, unittest.TestCase): def load_backends(self): """Initializes each manager and assigns them to an attribute.""" - for manager in [assignment, catalog, credential, identity, policy, + for manager in [assignment, catalog, credential, ec2, identity, policy, token, trust]: manager_name = '%s_api' % manager.__name__.split('.')[-1] setattr(self, manager_name, manager.Manager()) -- cgit