We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c6a1c commit 22af7b7Copy full SHA for 22af7b7
1 file changed
tests/test_api.py
@@ -0,0 +1,30 @@
1
+from src import api as testgres_api
2
+from src.node import PostgresNode
3
+
4
+from tests.helpers.global_data import OsOpsDescrs
5
6
7
+class TestAPI:
8
+ def test_001__get_new_node(self):
9
+ C_NODE_NAME = "abc"
10
11
+ with testgres_api.get_new_node(name=C_NODE_NAME) as node:
12
+ assert type(node) is PostgresNode
13
+ assert node.name == C_NODE_NAME
14
+ node.init()
15
+ node.slow_start()
16
+ node.stop()
17
+ return
18
19
+ def test_001__get_remote_node(self):
20
21
22
+ conn_params = OsOpsDescrs.sm_remote_conn_params
23
24
+ with testgres_api.get_remote_node(name=C_NODE_NAME, conn_params=conn_params) as node:
25
26
27
28
29
30
0 commit comments