From 30094793cad3a65a5a28a270b576417ed90b134a Mon Sep 17 00:00:00 2001 From: Javier de la Puente Date: Thu, 27 Jun 2024 13:25:22 +0200 Subject: [PATCH] first ip instead of list --- charm/tests/integration/test_charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charm/tests/integration/test_charm.py b/charm/tests/integration/test_charm.py index 673a59589..951249ca9 100644 --- a/charm/tests/integration/test_charm.py +++ b/charm/tests/integration/test_charm.py @@ -60,7 +60,7 @@ async def test_netbox_storage( assert: The site is created and there is an extra object (the image) in S3. """ - unit_ip = await get_unit_ips(netbox_app) + unit_ip = await get_unit_ips(netbox_app)[0] base_url = f"http://{unit_ip}:8000" token = await get_new_admin_token(netbox_app, base_url) @@ -142,7 +142,7 @@ async def test_netbox_check_cronjobs( assert: The cron task syncdatasource should update the status of the datasource to completed. """ - unit_ip = await get_unit_ips(netbox_app) + unit_ip = await get_unit_ips(netbox_app)[0] base_url = f"http://{unit_ip}:8000" token = await get_new_admin_token(netbox_app, base_url) headers = {