Beispiel #1
0
 def _get_port_from_cluster_spec(self, cluster_spec, service, prop_name):
     address = cluster_spec.configurations[service][prop_name]
     return utils.get_port_from_address(address)
Beispiel #2
0
def get_port_from_config(service, name, cluster=None):
    address = get_config_value(service, name, cluster)
    return utils.get_port_from_address(address)
Beispiel #3
0
def get_port_from_config(service, name, cluster=None):
    address = get_config_value(service, name, cluster)
    return utils.get_port_from_address(address)
Beispiel #4
0
 def _get_port_from_cluster_spec(self, cluster_spec, service, prop_name):
     address = cluster_spec.configurations[service][prop_name]
     return utils.get_port_from_address(address)
Beispiel #5
0
 def test_get_port_from_address(self):
     for address, port in self.test_values:
         self.assertEqual(u.get_port_from_address(address), port)