Ejemplo n.º 1
0
    def test_loglevel_no_manage_logConf(self):
        self.flags(healthnmon_manage_log_config="dummyfile")

        try:
            log.healthnmon_manage_setup()
        except Exception:
            self.assert_(True)  # raise exception
Ejemplo n.º 2
0
    def test_loglevel_no_manage_logConf(self):
        self.flags(healthnmon_manage_log_config="dummyfile")

        try:
            log.healthnmon_manage_setup()
        except Exception:
            self.assert_(True)  # raise exception
Ejemplo n.º 3
0
 def test_loglevel_INFO_from_manage_logConf(self):
     log.healthnmon_manage_setup()
     self.log.info("baz")
     self.assert_(True)  # didn't raise exception
     self.assertEqual(self.log.logger.level,
                      self.log.logger.getEffectiveLevel())
Ejemplo n.º 4
0
    def test_loglevel_manage_logConf_None(self):
        self.flags(healthnmon_manage_log_config="")
        log.healthnmon_manage_setup()

        self.assert_(True)  # do not raise exception
Ejemplo n.º 5
0
 def test_loglevel_INFO_from_manage_logConf(self):
     log.healthnmon_manage_setup()
     self.log.info("baz")
     self.assert_(True)  # didn't raise exception
     self.assertEqual(
         self.log.logger.level, self.log.logger.getEffectiveLevel())
Ejemplo n.º 6
0
    def test_loglevel_manage_logConf_None(self):
        self.flags(healthnmon_manage_log_config="")
        log.healthnmon_manage_setup()

        self.assert_(True)  # do not raise exception