Skip to content

Commit

Permalink
Fix Discovery Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta83 committed Oct 24, 2024
1 parent 18390d6 commit 0858657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pytest_fixtures/component/provision_pxe.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def module_ssh_key_file():


@pytest.fixture
def provisioning_host(module_ssh_key_file, pxe_loader):
def provisioning_host(module_ssh_key_file, pxe_loader, module_provisioning_sat):
"""Fixture to check out blank VM"""
vlan_id = settings.provisioning.vlan_id
cd_iso = (
Expand All @@ -234,6 +234,7 @@ def provisioning_host(module_ssh_key_file, pxe_loader):
) as prov_host:
yield prov_host
# Set host as non-blank to run teardown of the host
assert module_provisioning_sat.sat.execute('systemctl restart dhcpd').status == 0
prov_host.blank = getattr(prov_host, 'blank', False)


Expand Down
2 changes: 1 addition & 1 deletion 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=1500,
timeout=1800,
delay=40,
)
discovered_host = sat.api.DiscoveredHost().search(query={'mac': mac})[0]
Expand Down

0 comments on commit 0858657

Please sign in to comment.