Skip to content

Commit eac8128

Browse files
New os_ops tests are added (sync with source) (#427)
1 parent 63ecd46 commit eac8128

4 files changed

Lines changed: 2721 additions & 24 deletions

File tree

‎src/__init__.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .exceptions import \
1919
TestgresException, \
2020
ExecUtilException, \
21+
ExecTimeoutException, \
2122
QueryException, \
2223
QueryTimeoutException, \
2324
TimeoutException, \
@@ -53,7 +54,9 @@
5354

5455
from .config import testgres_config
5556

56-
from testgres.operations.os_ops import OsOperations, ConnectionParams
57+
from testgres.operations.os_ops import OsOperations
58+
from testgres.operations.os_ops import ConnectionParams
59+
from testgres.operations.os_ops import OsProcessController
5760
from testgres.operations.local_ops import LocalOperations
5861
from testgres.operations.remote_ops import RemoteOperations
5962

@@ -66,6 +69,7 @@
6669
"TestgresConfig", "configure_testgres", "scoped_config", "push_config", "pop_config",
6770
"NodeConnection", "DatabaseError", "InternalError", "ProgrammingError", "OperationalError",
6871
"TestgresException", "ExecUtilException", "QueryException",
72+
"ExecTimeoutException",
6973
"QueryTimeoutException",
7074
"TimeoutException", "CatchUpException", "StartNodeException", "InitNodeException", "BackupException", "InvalidOperationException",
7175
"XLogMethod", "IsolationLevel", "NodeStatus", "ProcessType", "DumpFormat",
@@ -74,5 +78,6 @@
7478
"PortManager",
7579
"reserve_port", "release_port", "get_bin_path", "get_bin_dir", "get_pg_config", "get_pg_version", "parse_pg_version",
7680
"First", "Any",
77-
"OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams"
81+
"OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams",
82+
"OsProcessController",
7883
]

‎src/exceptions.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from testgres.operations.exceptions import TestgresException
77
from testgres.operations.exceptions import ExecUtilException
88
from testgres.operations.exceptions import InvalidOperationException
9+
from testgres.operations.exceptions import ExecTimeoutException
910

1011

1112
class PortForException(TestgresException):
@@ -298,3 +299,4 @@ def __repr__(self) -> str:
298299

299300
assert ExecUtilException.__name__ == "ExecUtilException"
300301
assert InvalidOperationException.__name__ == "InvalidOperationException"
302+
assert ExecTimeoutException.__name__ == "ExecTimeoutException"

0 commit comments

Comments
 (0)