diff --git a/tests/foreman/api/test_rhcloud_inventory.py b/tests/foreman/api/test_rhcloud_inventory.py index 3c67fa6953d..434039a1b1b 100644 --- a/tests/foreman/api/test_rhcloud_inventory.py +++ b/tests/foreman/api/test_rhcloud_inventory.py @@ -124,7 +124,7 @@ def test_rhcloud_inventory_api_e2e( infrastructure_type = [ host['system_profile']['infrastructure_type'] for host in json_data['hosts'] ] - assert 'physical' + assert 'physical' in infrastructure_type assert 'virtual' in infrastructure_type all_host_profiles = [host['system_profile'] for host in json_data['hosts']]