def test_udp_transform_health_monitor(self): in_hm = sample_configs.sample_health_monitor_tuple( proto=constants.HEALTH_MONITOR_UDP_CONNECT ) ret = self.udp_jinja_cfg._transform_health_monitor(in_hm) self.assertEqual(sample_configs.RET_UDP_HEALTH_MONITOR, ret)
def test_transform_health_monitor(self): in_persistence = sample_configs.sample_health_monitor_tuple() ret = self.jinja_cfg._transform_health_monitor(in_persistence) self.assertEqual(sample_configs.RET_MONITOR, ret)
def test_udp_transform_health_monitor(self): in_hm = sample_configs.sample_health_monitor_tuple( proto=constants.HEALTH_MONITOR_UDP_CONNECT) ret = self.udp_jinja_cfg._transform_health_monitor(in_hm) self.assertEqual(sample_configs.RET_UDP_HEALTH_MONITOR, ret)