mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03:30
Factor out the response handling boilerplate from HostInsights.get_insights
We'll want to reuse it for the API call to /hosts as well.
This commit is contained in:
@@ -148,7 +148,7 @@ class TestHostInsights():
|
||||
|
||||
(msg, code) = view.get_insights('https://myexample.com/whocares/me/', 'ignore', 'ignore')
|
||||
assert msg['error'] == (
|
||||
'Failed to gather reports and maintenance plans from Insights API at URL'
|
||||
'Failed to access the Insights API at URL'
|
||||
' https://myexample.com/whocares/me/. Server responded with 500 status code '
|
||||
'and message mock 500 err msg')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user