Skip to content

Commit

Permalink
QE: Try a more fine grain search when looking for a system (#8072)
Browse files Browse the repository at this point in the history
  • Loading branch information
srbarrios authored Dec 21, 2023
1 parent 79726b8 commit a8af41a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,9 @@
step 'I wait until "rhn-search" service is active on "server"'
repeat_until_timeout(timeout: 60, message: 'rhn-search is not responding properly.') do
log "Search by hostname: #{get_target('sle_minion').hostname}"
result = $api_test.system.search.hostname(get_target('sle_minion').hostname)
result = $api_test.system.search_by_name(get_target('sle_minion').hostname)
log result
break if get_target('sle_minion').full_hostname.include? result.first['hostname']
break if get_target('sle_minion').full_hostname.include? result.first['name']
rescue StandardError => e
log "rhn-search still not responding.\nError message: #{e.message}"
sleep 3
Expand Down

0 comments on commit a8af41a

Please sign in to comment.