From 4544a12109b5187514c606a0267388f599a60ae7 Mon Sep 17 00:00:00 2001 From: Adarsh dubey Date: Thu, 11 Jan 2024 19:50:02 +0530 Subject: [PATCH] Increasing the timeout for mac collection (#13741) (cherry picked from commit 9d5e84ceec5debdabaadc2244e060782c31bba01) --- tests/foreman/api/test_discoveredhost.py | 8 ++++---- tests/foreman/cli/test_discoveredhost.py | 4 ++-- tests/foreman/ui/test_discoveredhost.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/foreman/api/test_discoveredhost.py b/tests/foreman/api/test_discoveredhost.py index 948c68e0549..b3c9ca621b2 100644 --- a/tests/foreman/api/test_discoveredhost.py +++ b/tests/foreman/api/test_discoveredhost.py @@ -206,7 +206,7 @@ def test_positive_provision_pxe_host( mac = provisioning_host._broker_args['provisioning_nic_mac_addr'] wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=600, + timeout=1500, delay=40, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0] @@ -256,7 +256,7 @@ def test_positive_provision_pxe_less_host( mac = pxeless_discovery_host._broker_args['provisioning_nic_mac_addr'] wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=600, + timeout=1500, delay=40, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0] @@ -391,7 +391,7 @@ def test_positive_reboot_pxe_host( mac = provisioning_host._broker_args['provisioning_nic_mac_addr'] wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=240, + timeout=1500, delay=20, ) @@ -437,7 +437,7 @@ def test_positive_reboot_all_pxe_hosts( mac = host._broker_args['provisioning_nic_mac_addr'] wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], # noqa: B023 - timeout=240, + timeout=1500, delay=20, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0] diff --git a/tests/foreman/cli/test_discoveredhost.py b/tests/foreman/cli/test_discoveredhost.py index 4ee7015ec03..e91db52a804 100644 --- a/tests/foreman/cli/test_discoveredhost.py +++ b/tests/foreman/cli/test_discoveredhost.py @@ -57,7 +57,7 @@ def test_rhel_pxe_discovery_provisioning( wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=600, + timeout=1500, delay=40, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0] @@ -120,7 +120,7 @@ def test_rhel_pxeless_discovery_provisioning( wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=600, + timeout=1500, delay=40, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0] diff --git a/tests/foreman/ui/test_discoveredhost.py b/tests/foreman/ui/test_discoveredhost.py index 87b62e412e1..82b29d897a8 100644 --- a/tests/foreman/ui/test_discoveredhost.py +++ b/tests/foreman/ui/test_discoveredhost.py @@ -86,7 +86,7 @@ def test_positive_provision_pxe_host( mac = provisioning_host._broker_args['provisioning_nic_mac_addr'] wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=240, + timeout=1500, delay=20, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0] @@ -184,7 +184,7 @@ def test_positive_auto_provision_host_with_rule( mac = pxeless_discovery_host._broker_args['provisioning_nic_mac_addr'] wait_for( lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [], - timeout=240, + timeout=1500, delay=20, ) discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0]