Skip to content

Commit

Permalink
Increasing the timeout for mac collection
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshdubey-star committed Jan 11, 2024
1 parent 73e1475 commit f74bb0f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/foreman/api/test_discoveredhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,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]
Expand Down Expand Up @@ -251,7 +251,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]
Expand Down Expand Up @@ -386,7 +386,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,
)

Expand Down Expand Up @@ -432,7 +432,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]
Expand Down
4 changes: 2 additions & 2 deletions tests/foreman/cli/test_discoveredhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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]
Expand Down Expand Up @@ -115,7 +115,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]
Expand Down
4 changes: 2 additions & 2 deletions tests/foreman/ui/test_discoveredhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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]
Expand Down Expand Up @@ -179,7 +179,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]
Expand Down

0 comments on commit f74bb0f

Please sign in to comment.