Skip to content

Commit

Permalink
Add integration test for happy path for controller connection
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Jan 17, 2024
1 parent 3786137 commit cb70f35
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/integration/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@
logger = logging.getLogger(__name__)


@base.bootstrapped
@pytest.mark.asyncio
async def test_connection_happy_path(event_loop):
async with base.CleanController() as contr:
conn = contr.connection()
new_cont = Controller()
await new_cont.connect(endpoint=conn.endpoint,
username=conn.username,
password=conn.password,
cacert=conn.cacert,
)
await new_cont.disconnect()


@base.bootstrapped
@pytest.mark.asyncio
async def test_monitor(event_loop):
Expand Down

0 comments on commit cb70f35

Please sign in to comment.