Skip to content

Commit 54ea488

Browse files
committed
Modifications in Libvirt CR to resolve key error
1 parent ca36446 commit 54ea488

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

tests/foreman/cli/test_computeresource_libvirt.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,16 @@ def test_positive_provision_end_to_end(
448448
f'su foreman -s /bin/bash -c "virsh -c {LIBVIRT_URL} list --state-running"'
449449
)
450450
assert hostname in result.stdout
451-
452451
wait_for(
453-
lambda: sat.cli.Host.info({'name': hostname})['status']['build-status']
454-
!= 'Pending installation',
455-
timeout=1800,
456-
delay=30,
452+
lambda: (
453+
sat.cli.Host.info({'name': hostname})
454+
.get('status', {})
455+
.get('build-status', 'Pending installation')
456+
!= 'Pending installation'
457+
),
458+
timeout=3600,
459+
delay=10,
460+
handle_exception=True,
457461
)
458462
host_info = sat.cli.Host.info({'id': host['id']})
459463
assert host_info['status']['build-status'] == 'Installed'

0 commit comments

Comments
 (0)