From 44594e8693af3a1aaa8045e85b437af8ecdba661 Mon Sep 17 00:00:00 2001 From: gordon chung Date: Fri, 19 Sep 2014 00:53:23 -0400 Subject: [PATCH] test db2 driver code currently, db2 driver code is not being tested. the scenario tests are essentially calling the mongodb driver code twice. Change-Id: I4987bb974e4f8ad6584e7939c14e59f243562fef Closes-Bug: #1371396 --- ceilometer/tests/db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ceilometer/tests/db.py b/ceilometer/tests/db.py index 45fa05f87..d4843b017 100644 --- a/ceilometer/tests/db.py +++ b/ceilometer/tests/db.py @@ -186,5 +186,7 @@ class MixinTestsWithBackendScenarios(object): ('hbase', {'db_url': os.environ.get('CEILOMETER_TEST_HBASE_URL', 'hbase://__test__')}), ('db2', {'db_url': (os.environ.get('CEILOMETER_TEST_DB2_URL') or - os.environ.get('CEILOMETER_TEST_MONGODB_URL'))}) + os.environ.get('CEILOMETER_TEST_MONGODB_URL', + '').replace('mongodb://', + 'db2://'))}) ]