Skip to content

Commit cb70f35

Browse files
committed
Add integration test for happy path for controller connection
1 parent 3786137 commit cb70f35

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/integration/test_connection.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@
2424
logger = logging.getLogger(__name__)
2525

2626

27+
@base.bootstrapped
28+
@pytest.mark.asyncio
29+
async def test_connection_happy_path(event_loop):
30+
async with base.CleanController() as contr:
31+
conn = contr.connection()
32+
new_cont = Controller()
33+
await new_cont.connect(endpoint=conn.endpoint,
34+
username=conn.username,
35+
password=conn.password,
36+
cacert=conn.cacert,
37+
)
38+
await new_cont.disconnect()
39+
40+
2741
@base.bootstrapped
2842
@pytest.mark.asyncio
2943
async def test_monitor(event_loop):

0 commit comments

Comments
 (0)