diff --git a/tests/foreman/ui/test_contenthost.py b/tests/foreman/ui/test_contenthost.py index 2055d08e3ea..5132e86487f 100644 --- a/tests/foreman/ui/test_contenthost.py +++ b/tests/foreman/ui/test_contenthost.py @@ -160,7 +160,7 @@ def test_positive_end_to_end( :id: f43f2826-47c1-4069-9c9d-2410fd1b622c - :setup: Register a rhel7 as a content host. Import repos + :setup: Register a rhel7 vm as a content host. Import repos collection and associated manifest. :steps: @@ -199,7 +199,8 @@ def test_positive_end_to_end( assert rhel_status in host_rhel_lcs['permission_denied'] assert rhel_status in host_status # Ensure content host is searchable - found_chost = session.contenthost.search(vm.hostname) + found_chost = session.contenthost.search(f'{vm.hostname}') + assert found_chost, f'Search for contenthost by name: "{vm.hostname}", returned no results.' assert found_chost[0]['Name'] == vm.hostname chost = session.contenthost.read( vm.hostname, widget_names=['details', 'provisioning_details', 'subscriptions']