Beispiel #1
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     self.override_config('plugins', ['fake'])
     pb.setup_plugins()
     castellan.validate_config()
     ds_manager.setup_data_sources()
Beispiel #2
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     self.override_config('plugins', ['fake'])
     pb.setup_plugins()
     castellan.validate_config()
     ds_manager.setup_data_sources()
Beispiel #3
0
def setup_common(possible_topdir, service_name):
    dev_conf = os.path.join(possible_topdir, 'etc', 'sahara', 'sahara.conf')
    config_files = None
    if os.path.exists(dev_conf):
        config_files = [dev_conf]

    config.parse_configs(config_files)
    common_config.set_config_defaults()
    log.setup(CONF, "sahara")

    # Validate other configurations (that may produce logs) here
    cinder.validate_config()
    castellan.validate_config()

    messaging.setup(service_name)

    plugins_base.setup_plugins()

    LOG.info(_LI('Sahara {service} started').format(service=service_name))
Beispiel #4
0
def setup_common(possible_topdir, service_name):
    dev_conf = os.path.join(possible_topdir,
                            'etc',
                            'sahara',
                            'sahara.conf')
    config_files = None
    if os.path.exists(dev_conf):
        config_files = [dev_conf]

    config.parse_configs(config_files)
    log.setup(CONF, "sahara")

    # Validate other configurations (that may produce logs) here
    cinder.validate_config()
    castellan.validate_config()

    if service_name != 'all-in-one' or cfg.CONF.enable_notifications:
        messaging.setup()

    plugins_base.setup_plugins()

    LOG.info(_LI('Sahara {service} started').format(service=service_name))
Beispiel #5
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
Beispiel #6
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     pb.setup_plugins()
     castellan.validate_config()
Beispiel #7
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
Beispiel #8
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
Beispiel #9
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
Beispiel #10
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
Beispiel #11
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
Beispiel #12
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
Beispiel #13
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
Beispiel #14
0
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()
Beispiel #15
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
Beispiel #16
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
Beispiel #17
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
Beispiel #18
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
Beispiel #19
0
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()