gitlab-org--gitlab-foss/spec
David Wilkins 467a411e88 Convert RestClient to Gitlab::HTTP for Prometheus Monitor
- 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
2019-08-07 02:42:20 +00:00
..
bin
config
controllers Rewrite issues show spec as a feature spec 2019-08-05 16:36:44 +12:00
db Add commit_id to draft_notes table 2019-08-01 16:00:36 -05:00
dependencies
factories Merge branch 'explicit-helm-factory-certs' into 'master' 2019-08-05 16:48:32 +00:00
features Convert RestClient to Gitlab::HTTP for Prometheus Monitor 2019-08-07 02:42:20 +00:00
finders Add group level container repository endpoints 2019-08-05 20:00:50 +00:00
fixtures Add group level container repository endpoints 2019-08-05 20:00:50 +00:00
frontend Revert "Fixed comparing value to undefined" 2019-08-06 12:02:23 +00:00
graphql
haml_lint/linter
helpers Add top navigation analytics link 2019-08-06 14:13:13 +08:00
initializers
javascripts Merge branch '65263-manual-action' into 'master' 2019-08-06 11:50:18 +00:00
lib Convert RestClient to Gitlab::HTTP for Prometheus Monitor 2019-08-07 02:42:20 +00:00
mailers
migrations
models Convert RestClient to Gitlab::HTTP for Prometheus Monitor 2019-08-07 02:42:20 +00:00
policies
presenters Merge branch '65152-selective-highlight' into 'master' 2019-08-06 16:42:14 +00:00
rack_servers
requests Add group level container repository endpoints 2019-08-05 20:00:50 +00:00
routing
rubocop Add RSpec/TopLevelDescribePath cop 2019-08-01 11:07:26 +01:00
serializers Fix error on project name 2019-08-05 21:15:00 +00:00
services Convert RestClient to Gitlab::HTTP for Prometheus Monitor 2019-08-07 02:42:20 +00:00
sidekiq/cron
support Convert RestClient to Gitlab::HTTP for Prometheus Monitor 2019-08-07 02:42:20 +00:00
tasks Remove mail_google_schema_whitelisting spec 2019-08-01 11:07:28 +01:00
uploaders
validators Refactor SystemHookUrlValidator and specs 2019-08-02 15:39:18 +01:00
views Fix project nav specs 2019-08-01 11:07:28 +01:00
workers Merge branch 'prefer-to-use-process-pipeline-worker' into 'master' 2019-08-05 09:29:45 +00:00
factories_spec.rb
fast_spec_helper.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Again run quarantine specs if tag provided 2019-08-02 11:54:40 +02:00