Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions tests/foreman/ui/test_computeresource_azurerm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from fauxfactory import gen_string
import pytest
from wait_for import wait_for

from robottelo.config import settings
from robottelo.constants import (
Expand Down Expand Up @@ -135,8 +136,12 @@ def test_positive_end_to_end_azurerm_ft_host_provision(

# Host Delete
with sat_azure.api_factory.satellite_setting('destroy_vm_on_host_delete=True'):
session.host.delete(fqdn)
assert not session.host.search(fqdn)
session.host_new.delete(fqdn)
wait_for(
lambda: session.host_new.search(fqdn)[0].get('Name') == 'No Results',
timeout=300,
delay=10,
)

# AzureRm Cloud assertion
assert not azurecloud_vm.exists
Expand Down
Loading