Skip to content

Commit

Permalink
optin for pgwire port (ydb-platform#7870)
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby authored and stanislav-shchetinin committed Aug 30, 2024
1 parent e7cc9af commit dc289d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ydb/tests/functional/postgresql/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ENV(PYTHONWARNINGS="ignore")
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
ENV(YDB_TABLE_ENABLE_PREPARED_DDL=true)
ENV(YDB_USE_IN_MEMORY_PDISKS=true)
ENV(YDB_ALLOCATE_PGWIRE_PORT=true)
ENV(YDB_ALLOCATE_PGWIRE_PORT=true)

SIZE(MEDIUM)

Expand Down
4 changes: 3 additions & 1 deletion ydb/tests/library/harness/kikimr_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,12 @@ def __make_run_command(self):
"--grpc-port=%s" % self.grpc_port,
"--mon-port=%d" % self.mon_port,
"--ic-port=%d" % self.ic_port,
"--pgwire-port=%d" % self.pgwire_port,
]
)

if os.environ.get("YDB_ALLOCATE_PGWIRE_PORT", "") == "true":
command.append("--pgwire-port=%d" % self.pgwire_port)

if self.__encryption_key is not None:
command.extend(["--key-file", self.__encryption_key])

Expand Down

0 comments on commit dc289d3

Please sign in to comment.