Skip to content

Commit

Permalink
Fixing Discovery tests (#12914)
Browse files Browse the repository at this point in the history
(cherry picked from commit bb8eb50)
  • Loading branch information
adarshdubey-star authored and web-flow committed Oct 17, 2023
1 parent 6ad42c4 commit 65ba353
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tests/foreman/api/test_discoveredhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class TestDiscoveredHost:
@pytest.mark.on_premises_provisioning
@pytest.mark.parametrize('module_provisioning_sat', ['discovery'], indirect=True)
@pytest.mark.parametrize('pxe_loader', ['bios', 'uefi'], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
@pytest.mark.rhel_ver_list([8, 9])
@pytest.mark.tier3
def test_positive_provision_pxe_host(
self,
Expand Down Expand Up @@ -204,8 +204,8 @@ 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,
delay=20,
timeout=600,
delay=40,
)
discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0]
discovered_host.hostgroup = provisioning_hostgroup
Expand All @@ -227,7 +227,7 @@ def test_positive_provision_pxe_host(
@pytest.mark.on_premises_provisioning
@pytest.mark.parametrize('module_provisioning_sat', ['discovery'], indirect=True)
@pytest.mark.parametrize('pxe_loader', ['bios', 'uefi'], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
@pytest.mark.rhel_ver_list([8, 9])
@pytest.mark.tier3
def test_positive_provision_pxe_less_host(
self,
Expand All @@ -254,8 +254,8 @@ 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=240,
delay=20,
timeout=600,
delay=40,
)
discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0]
discovered_host.hostgroup = provisioning_hostgroup
Expand Down
12 changes: 6 additions & 6 deletions tests/foreman/cli/test_discoveredhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@pytest.mark.on_premises_provisioning
@pytest.mark.parametrize('module_provisioning_sat', ['discovery'], indirect=True)
@pytest.mark.parametrize('pxe_loader', ['bios', 'uefi'], indirect=True)
@pytest.mark.rhel_ver_match('8')
@pytest.mark.rhel_ver_match('7')
def test_rhel_pxe_discovery_provisioning(
module_provisioning_rhel_content,
module_discovery_sat,
Expand Down Expand Up @@ -57,8 +57,8 @@ def test_rhel_pxe_discovery_provisioning(

wait_for(
lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [],
timeout=240,
delay=20,
timeout=600,
delay=40,
)
discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0]
discovered_host.hostgroup = provisioning_hostgroup
Expand Down Expand Up @@ -95,7 +95,7 @@ def _finalize():
@pytest.mark.on_premises_provisioning
@pytest.mark.parametrize('module_provisioning_sat', ['discovery'], indirect=True)
@pytest.mark.parametrize('pxe_loader', ['bios', 'uefi'], indirect=True)
@pytest.mark.rhel_ver_match('8')
@pytest.mark.rhel_ver_match('7')
def test_rhel_pxeless_discovery_provisioning(
module_discovery_sat,
pxeless_discovery_host,
Expand All @@ -120,8 +120,8 @@ def test_rhel_pxeless_discovery_provisioning(

wait_for(
lambda: sat.api.DiscoveredHost().search(query={'mac': mac}) != [],
timeout=240,
delay=20,
timeout=600,
delay=40,
)
discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0]
discovered_host.hostgroup = provisioning_hostgroup
Expand Down

0 comments on commit 65ba353

Please sign in to comment.