summaryrefslogtreecommitdiff
path: root/spec/lib/sentry
Commit message (Collapse)AuthorAgeFilesLines
* Convert RestClient to Gitlab::HTTP for Prometheus MonitorDavid Wilkins2019-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | - Closes #60024 - Change PrometheusClient.new to accept a base url instead of an already created RestClient - Use Gitlab::HTTP in PrometheusClient instead of creating RestClient in PrometheusService - Move http_options from PrometheusService to PrometheusClient (follow_redirects: false) - ensure that base urls don't have the trailing slash - Created a `PrometheusClient#url` method that might not be strictly required - Change rescued exceptions from RestClient::* to HTTParty::ResponseError where possible and StandardError for the rest
* Handle possible HTTP exception for Sentry clientPeter Leitzen2019-04-071-9/+39
| | | | | | | | | | | Prior this commit exceptions raised during a HTTP request weren't caught by the Sentry client and were passed to the user. In addition the Sentry client tried to catch a non-existent error `Sentry::Client::SentryError`. Now, the Sentry client catches all possible errors coming from a HTTP request.
* Handle missing keys in sentry api responseReuben Pereira2019-03-291-14/+71
| | | | | | - Do not raise error when there are missing non-essential keys in sentry api response. - Add specs for to check for missing keys behavior.
* Catch exception in calculate reactive cacheReuben Pereira2019-02-211-1/+1
| | | | Return the exception as an error.
* Update Sentry client to get project listReuben Pereira2019-01-311-30/+129
|
* Service for calling Sentry issues apiReuben Pereira2019-01-091-0/+119