diff --git a/glance/tests/unit/base.py b/glance/tests/unit/base.py index f865cf75df..0f34e7a38b 100644 --- a/glance/tests/unit/base.py +++ b/glance/tests/unit/base.py @@ -72,15 +72,15 @@ class MultiStoreClearingUnitTest(test_utils.BaseTestCase): :param passing_config: making store driver passes basic configurations. :returns: the number of how many store drivers been loaded. """ - self.config(enabled_backends={'file1': 'file', 'ceph1': 'rbd', + self.config(enabled_backends={'fast': 'file', 'cheap': 'file', 'readonly_store': 'http'}) store.register_store_opts(CONF) - self.config(default_backend='file1', + self.config(default_backend='fast', group='glance_store') self.config(filesystem_store_datadir=self.test_dir, - group='file1') + group='fast') store.create_multi_stores(CONF) diff --git a/glance/tests/unit/v2/test_discovery_stores.py b/glance/tests/unit/v2/test_discovery_stores.py index 6afbf748a1..4de7976051 100644 --- a/glance/tests/unit/v2/test_discovery_stores.py +++ b/glance/tests/unit/v2/test_discovery_stores.py @@ -39,7 +39,7 @@ class TestInfoControllers(base.MultiStoreClearingUnitTest): req) def test_get_stores(self): - available_stores = ['ceph1', 'file1', 'readonly_store'] + available_stores = ['cheap', 'fast', 'readonly_store'] req = unit_test_utils.get_fake_request() output = self.controller.get_stores(req) self.assertIn('stores', output) @@ -48,7 +48,7 @@ class TestInfoControllers(base.MultiStoreClearingUnitTest): self.assertIn(stores['id'], available_stores) def test_get_stores_read_only_store(self): - available_stores = ['ceph1', 'file1', 'readonly_store'] + available_stores = ['cheap', 'fast', 'readonly_store'] req = unit_test_utils.get_fake_request() output = self.controller.get_stores(req) self.assertIn('stores', output)