File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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" )
You can’t perform that action at this time.
0 commit comments