def test_hc_zabbix(self, zabix_mock):
     os.environ["ZABBIX_URL"] = "url"
     os.environ["ZABBIX_USER"] = "******"
     os.environ["ZABBIX_PASSWORD"] = "******"
     os.environ["HEALTH_CHECKER"] = "zabbix"
     self.addCleanup(self.remove_env, "HEALTH_CHECKER")
     os.environ["ZABBIX_HOST"] = "2"
     os.environ["ZABBIX_INTERFACE"] = "1"
     from redisapi.hc import ZabbixHealthCheck
     from redisapi.managers import DockerManager
     manager = DockerManager()
     self.assertIsInstance(manager.health_checker(), ZabbixHealthCheck)
Beispiel #2
0
 def test_hc_zabbix(self, zabix_mock):
     os.environ["ZABBIX_URL"] = "url"
     os.environ["ZABBIX_USER"] = "******"
     os.environ["ZABBIX_PASSWORD"] = "******"
     os.environ["HEALTH_CHECKER"] = "zabbix"
     self.addCleanup(self.remove_env, "HEALTH_CHECKER")
     os.environ["ZABBIX_HOST"] = "2"
     os.environ["ZABBIX_INTERFACE"] = "1"
     from redisapi.hc import ZabbixHealthCheck
     from redisapi.managers import DockerManager
     manager = DockerManager()
     self.assertIsInstance(manager.health_checker(), ZabbixHealthCheck)
 def test_hc(self):
     from redisapi.hc import FakeHealthCheck
     from redisapi.managers import DockerManager
     manager = DockerManager()
     self.assertIsInstance(manager.health_checker(), FakeHealthCheck)
Beispiel #4
0
 def test_hc(self):
     from redisapi.hc import FakeHealthCheck
     from redisapi.managers import DockerManager
     manager = DockerManager()
     self.assertIsInstance(manager.health_checker(), FakeHealthCheck)