def test_compute_global_connection_limit(self): lts = [ sample_configs.sample_listener_tuple(connection_limit=None), sample_configs.sample_listener_tuple()] in_listeners = [jinja_cfg._transform_listener(x, '/v2') for x in lts] ret = jinja_cfg._compute_global_connection_limit(in_listeners) self.assertEqual(2098, ret)
def test_compute_global_connection_limit(self): lts = [ sample_configs.sample_listener_tuple(connection_limit=None), sample_configs.sample_listener_tuple()] in_listeners = [jinja_cfg._transform_listener(x, '/v2') for x in lts] ret = jinja_cfg._compute_global_connection_limit(in_listeners) self.assertEqual(2098, ret)
def test_transform_listener(self): in_listener = sample_configs.sample_listener_tuple() ret = jinja_cfg._transform_listener(in_listener, '/v2') self.assertEqual(sample_configs.RET_LISTENER, ret)
def test_transform_listener(self): in_listener = sample_configs.sample_listener_tuple() ret = jinja_cfg._transform_listener(in_listener, '/v2') self.assertEqual(sample_configs.RET_LISTENER, ret)