summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorArmando Migliaccio <armando.migliaccio@citrix.com>2010-12-18 01:09:28 +0000
committerArmando Migliaccio <armando.migliaccio@citrix.com>2010-12-18 01:09:28 +0000
commitb69946adc893256a5a857cfeedb0f80968b453a0 (patch)
treec74b6caabdbd99f9d9d9ebc002d57e586feba034 /nova/tests
parentca81b0c12a3853942e9ce85154c38dad381ead0e (diff)
parent800ecbd713c55d7410d6eb860a439cb87468e7ad (diff)
merge trunk and minor fix(for whatever reason validator_unittest did not get removed from run_test.py)
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/auth_unittest.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/nova/tests/auth_unittest.py b/nova/tests/auth_unittest.py
index 4508d6721..61ae43fb1 100644
--- a/nova/tests/auth_unittest.py
+++ b/nova/tests/auth_unittest.py
@@ -333,14 +333,10 @@ class AuthManagerLdapTestCase(AuthManagerTestCase, test.TestCase):
AuthManagerTestCase.__init__(self)
test.TestCase.__init__(self, *args, **kwargs)
import nova.auth.fakeldap as fakeldap
- FLAGS.redis_db = 8
if FLAGS.flush_db:
- logging.info("Flushing redis datastore")
- try:
- r = fakeldap.Redis.instance()
- r.flushdb()
- except:
- self.skip = True
+ logging.info("Flushing datastore")
+ r = fakeldap.Store.instance()
+ r.flushdb()
class AuthManagerDbTestCase(AuthManagerTestCase, test.TestCase):