Skip to content

Commit 0b2c629

Browse files
os_ops_descrs.py is added
1 parent dcb7f24 commit 0b2c629

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/helpers/os_ops_descrs.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
from ...testgres.operations.os_ops import OsOperations
2+
from ...testgres.operations.os_ops import ConnectionParams
3+
from ...testgres.operations.local_ops import LocalOperations
4+
from ...testgres.operations.remote_ops import RemoteOperations
5+
6+
import os
7+
8+
9+
class OsOpsDescr:
10+
os_ops: OsOperations
11+
sign: str
12+
13+
def __init__(self, os_ops: OsOperations, sign: str):
14+
assert isinstance(os_ops, OsOperations)
15+
assert type(sign) == str # noqa: E721
16+
self.os_ops = os_ops
17+
self.sign = sign
18+
19+
20+
class OsOpsDescrs:
21+
sm_remote_conn_params = ConnectionParams(
22+
host=os.getenv('RDBMS_TESTPOOL1_HOST') or '127.0.0.1',
23+
username=os.getenv('USER'),
24+
ssh_key=os.getenv('RDBMS_TESTPOOL_SSHKEY'))
25+
26+
sm_remote_os_ops = RemoteOperations(sm_remote_conn_params)
27+
28+
sm_remote_os_ops_descr = OsOpsDescr(sm_remote_os_ops, "remote_ops")
29+
30+
sm_local_os_ops = LocalOperations()
31+
32+
sm_local_os_ops_descr = OsOpsDescr(sm_local_os_ops, "local_ops")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy