aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgusev-p <gusev-p@yandex-team.ru>2022-03-20 14:10:37 +0300
committergusev-p <gusev-p@yandex-team.ru>2022-03-20 14:10:37 +0300
commit3c9dce9b3642b337582e389fba46ab537e762421 (patch)
treeda4bd8531437a4fb15097563359f87f286d8a7ea
parent7e87545eb5e73f4034e67af62ec2f53950e6eb5e (diff)
downloadydb-3c9dce9b3642b337582e389fba46ab537e762421.tar.gz
fix ext_port
Note: mandatory check (NEED_CHECK) was skipped ref:932e71c2bef923299e6b2b477d7aa25c82d01e0c
-rw-r--r--ydb/tests/library/harness/kikimr_port_allocator.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/ydb/tests/library/harness/kikimr_port_allocator.py b/ydb/tests/library/harness/kikimr_port_allocator.py
index d92b63d19a..ccb4654dc0 100644
--- a/ydb/tests/library/harness/kikimr_port_allocator.py
+++ b/ydb/tests/library/harness/kikimr_port_allocator.py
@@ -149,7 +149,8 @@ class KikimrPortManagerPortAllocator(KikimrPortAllocatorInterface):
#
class KikimrFixedNodePortAllocator(KikimrNodePortAllocatorInterface):
- def __init__(self, mon_port=8765, grpc_port=2135, mbus_port=2134, ic_port=19001, sqs_port=8771, grpc_ssl_port=2137):
+ def __init__(self, mon_port=8765, grpc_port=2135, mbus_port=2134, ic_port=19001, sqs_port=8771, grpc_ssl_port=2137,
+ ext_port=2237):
super(KikimrFixedNodePortAllocator, self).__init__()
if os.getenv('MON_PORT') is not None:
self.__mon_port = int(os.getenv('MON_PORT'))
@@ -169,6 +170,10 @@ class KikimrFixedNodePortAllocator(KikimrNodePortAllocatorInterface):
self.__grpc_ssl_port = int(os.getenv('GRPC_TLS_PORT'))
else:
self.__grpc_ssl_port = grpc_ssl_port
+ if os.getenv('GRPC_EXT_PORT') is not None:
+ self.__ext_port = int(os.getenv('GRPC_EXT_PORT'))
+ else:
+ self.__ext_port = ext_port
@property
def mon_port(self):
@@ -194,6 +199,10 @@ class KikimrFixedNodePortAllocator(KikimrNodePortAllocatorInterface):
def sqs_port(self):
return self.__sqs_port
+ @property
+ def ext_port(self):
+ return self.__ext_port
+
class KikimrFixedPortAllocator(KikimrPortAllocatorInterface):
def __init__(self,