From 6e4e5e9d0b4e3dd2c2ac99998b6ab68d8ce107ca Mon Sep 17 00:00:00 2001 From: Ashwini Mhatre Date: Fri, 15 Mar 2024 13:08:05 +0530 Subject: [PATCH 1/3] Update defs.py --- src/pytest_ansible_network_integration/defs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_ansible_network_integration/defs.py b/src/pytest_ansible_network_integration/defs.py index 8798b4b..b777fed 100644 --- a/src/pytest_ansible_network_integration/defs.py +++ b/src/pytest_ansible_network_integration/defs.py @@ -271,7 +271,7 @@ def get_dhcp_lease(self, current_lab_id: str) -> str: ips = [leases[mac] for mac in macs if mac in leases] attempt += 1 - if attempt == 30: + if attempt == 50: raise Exception("Could not find IPs") time.sleep(10) From c236aec47a8a12d2758d379f87b30ad28474a2f1 Mon Sep 17 00:00:00 2001 From: Ashwini Mhatre Date: Fri, 15 Mar 2024 13:14:41 +0530 Subject: [PATCH 2/3] Update setup.cfg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 6e0c120..2335c85 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,7 @@ install_requires = ansible-pylibssh cmlutils pytest - virl2-client<2.3.0 + virl2-client xmltodict From b553c6d30f4f365f703f9aa988c839a4f8efd912 Mon Sep 17 00:00:00 2001 From: Ashwini Mhatre Date: Wed, 3 Apr 2024 19:24:16 +0530 Subject: [PATCH 3/3] Update defs.py --- src/pytest_ansible_network_integration/defs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_ansible_network_integration/defs.py b/src/pytest_ansible_network_integration/defs.py index d0b1bf9..0ab5bf8 100644 --- a/src/pytest_ansible_network_integration/defs.py +++ b/src/pytest_ansible_network_integration/defs.py @@ -275,7 +275,7 @@ def get_dhcp_lease(self, current_lab_id: str) -> str: ips = [leases[mac] for mac in macs if mac in leases] attempt += 1 if attempt == 50: - raise Exception("Could not find IPs") + raise PytestNetworkError("Could not find IPs") time.sleep(10) logger.debug("Found IPs: %s", ips)