def test_multistore_below_mitaka(self): self.os_release.return_value = 'liberty' self.relation_ids.return_value = ['random_rid'] self.assertEqual(contexts.MultiStoreContext()(), {'known_stores': "glance.store.filesystem.Store," "glance.store.http.Store," "glance.store.rbd.Store," "glance.store.swift.Store"})
def test_multistore_defaults(self): self.relation_ids.return_value = [] self.assertEqual( contexts.MultiStoreContext()(), { 'known_stores': "glance.store.filesystem.Store," "glance.store.http.Store" })
def test_multistore_for_mitaka_and_upper(self): self.os_release.return_value = 'mitaka' self.relation_ids.return_value = ['random_rid'] self.assertEqual(contexts.MultiStoreContext()(), {'known_stores': "glance.store.cinder.Store," "glance.store.filesystem.Store," "glance.store.http.Store," "glance.store.rbd.Store," "glance.store.swift.Store"})
(GLANCE_API_CONF, { 'hook_contexts': [ context.SharedDBContext(ssl_dir=GLANCE_CONF_DIR), context.AMQPContext(ssl_dir=GLANCE_CONF_DIR), context.IdentityServiceContext(service='glance', service_user='******'), glance_contexts.GlanceContext(), glance_contexts.CephGlanceContext(), glance_contexts.ObjectStoreContext(), glance_contexts.CinderStoreContext(), glance_contexts.HAProxyContext(), context.SyslogContext(), glance_contexts.LoggingConfigContext(), glance_contexts.GlanceIPv6Context(), context.WorkerConfigContext(), glance_contexts.MultiStoreContext(), context.OSConfigFlagContext(charm_flag='api-config-flags', template_flag='api_config_flags'), context.InternalEndpointContext('glance-common'), context.SubordinateConfigContext(interface=['storage-backend'], service=['glance-api'], config_file=GLANCE_API_CONF), context.MemcacheContext() ], 'services': ['glance-api'] }), (ceph_config_file(), { 'hook_contexts': [context.CephContext()], 'services': ['glance-api', 'glance-registry'] }), (HAPROXY_CONF, {