Exemplo n.º 1
0
 def test_sectional_config_context_newton(self):
     self.os_release.return_value = 'newton'
     ctxt = contexts.SectionalConfigContext()()
     self.assertFalse(ctxt['sectional_default_config'])
Exemplo n.º 2
0
         cinder_contexts.ImageServiceContext(),
         cinder_contexts.CinderSubordinateConfigContext(
             interface=['storage-backend', 'backup-backend'],
             service='cinder',
             config_file=CINDER_CONF),
         cinder_contexts.StorageBackendContext(),
         cinder_contexts.LoggingConfigContext(),
         context.IdentityServiceContext(service='cinder',
                                        service_user='******'),
         context.BindHostContext(),
         context.WorkerConfigContext(),
         cinder_contexts.RegionContext(),
         context.InternalEndpointContext(),
         cinder_contexts.VolumeUsageAuditContext(),
         context.MemcacheContext(),
         cinder_contexts.SectionalConfigContext(),
         cinder_contexts.LVMContext()
     ],
     'services':
     ['cinder-api', 'cinder-volume', 'cinder-scheduler', 'haproxy']
 }),
 (CINDER_API_CONF, {
     'contexts': [context.IdentityServiceContext()],
     'services': ['cinder-api'],
 }),
 (CINDER_POLICY_JSON, {
     'contexts': [],
     'services': ['cinder-api']
 }),
 (ceph_config_file(), {
     'contexts': [context.CephContext()],
Exemplo n.º 3
0
 def test_sectional_config_context_ocata(self):
     self.os_release.return_value = 'ocata'
     ctxt = contexts.SectionalConfigContext()()
     self.assertTrue(ctxt['sectional_default_config'])