示例#1
0
 def test_log_path_logfile_overrides_logdir(self):
     cfg.CONF.log_dir = '/some/other/path'
     cfg.CONF.log_file = '/some/path/foo-bar.log'
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
示例#2
0
 def test_log_path_logfile(self):
     cfg.CONF.log_file = '/some/path/foo-bar.log'
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
示例#3
0
 def test_log_path_none(self):
     cfg.CONF.log_dir = None
     cfg.CONF.log_file = None
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
示例#4
0
 def test_log_path_logdir(self):
     cfg.CONF.log_dir = '/some/path'
     cfg.CONF.log_file = None
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
示例#5
0
 def test_log_path_logfile_overrides_logdir(self):
     cfg.CONF.log_dir = '/some/other/path'
     cfg.CONF.log_file = '/some/path/foo-bar.log'
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
示例#6
0
 def test_log_path_none(self):
     cfg.CONF.log_dir = None
     cfg.CONF.log_file = None
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
示例#7
0
 def test_log_path_logfile(self):
     cfg.CONF.log_file = '/some/path/foo-bar.log'
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
示例#8
0
 def test_log_path_logdir(self):
     cfg.CONF.log_dir = '/some/path'
     cfg.CONF.log_file = None
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')