Improve error messaging for JIRA integration connection tests
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=36100) </details> <!--IssueSummary end--> ### Problem to solve When saving settings for integrations such as the JIRA service, we currently test the entered settings before saving. The error messages when the test fails are not particularly helpful such as the generic "Test Failed" message reported in in https://gitlab.com/gitlab-org/gitlab/issues/13423. We should provide more detailed information when a connection test fails so that the user has more information to fix the problem. Ideally the solution will apply to other integrations as well. The current error message is as follows. ![gitlab.com-failed-to-validate-url](https://gitlab.com/-/project/278964/uploads/30243b863782539dd96b9a4dfa074d06/gitlab.com-failed-to-validate-url.png) The error message for the wrong credentials case when it is allowed to enforce the change is as follows. ![gitlab.com-failed-to-validate-cred](https://gitlab.com/-/project/278964/uploads/d4c411720d5f28dd5c250ecbe680e1e1/gitlab.com-failed-to-validate-cred.png) ### Intended users <!-- Who will use this feature? If known, include any of the following: types of users (e.g. Developer), personas, or specific company roles (e.g. Release Manager). It's okay to write "Unknown" and fill this field in later. * [Parker (Product Manager)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#parker-product-manager) * [Delaney (Development Team Lead)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#delaney-development-team-lead) * [Sasha (Software Developer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sasha-software-developer) * [Presley (Product Designer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#presley-product-designer) * [Devon (DevOps Engineer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#devon-devops-engineer) * [Sidney (Systems Administrator)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sidney-systems-administrator) * [Sam (Security Analyst)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sam-security-analyst) * [Dana (Data Analyst)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#dana-data-analyst) Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/ --> ### Further details <!-- Include use cases, benefits, and/or goals (contributes to our vision?) --> ### Proposal <!-- How are we going to solve the problem? Try to include the user journey! https://about.gitlab.com/handbook/journeys/#user-journey --> We should update the copy in this error to make it clearer to the user what went wrong and what their next steps should be. [TBD BY UX] ### Testing <!-- What risks does this change pose? How might it affect the quality of the product? What additional test coverage or changes to tests will be needed? Will it require cross-browser testing? See the test engineering process for further help: https://about.gitlab.com/handbook/engineering/quality/test-engineering/ --> ### Links / references
issue