Bug 1570806

Summary: No flash message if a credential is wrong during automate datastore refresh
Product: Red Hat CloudForms Management Engine Reporter: Dmitry Misharov <dmisharo>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Dmitry Misharov <dmisharo>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, hkataria, lavenel, mpovolny, obarenbo
Target Milestone: GA   
Target Release: cfme-future   
Hardware: All   
OS: Unspecified   
Whiteboard: automate:ui
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-11 15:25:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dmitry Misharov 2018-04-23 12:28:25 UTC
Description of problem:
If git credentials were changed and "Refresh with a new branch or tag" was performed there is no flash message that warns a user about it.

Version-Release number of selected component (if applicable):
5.9.2.3.20180419182310_cab2891

How reproducible:
Always

Steps to Reproduce:
1. Import automate datastore from a private git repo.
2. Change credentials of that repo.
3. Navigate to Automation/Automate/Explorer.
4. Click "Refresh with a new branch or tag"

Actual results:
Nothing happened in the UI, in the logs you can find such line: [----] E, [2018-04-23T08:13:41.121296 #11900:8e7114] ERROR -- : MIQ(MiqQueue#deliver) Message id: [777], Error: [Invalid credentials for URL https://some_url/somne_manageiq_datastore.git]

Expected results:
There should be a flash message about wrong credentials.

Additional info:
This BZ follows up https://bugzilla.redhat.com/show_bug.cgi?id=1568602