Welcome to mirror list, hosted at ThFree Co, Russian Federation.

metrics_dashboard_url_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cb9f58753a319e57d77b6a043753a3a134535821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module MetricsDashboardUrlHelpers
  # Using the url_helpers available in the test suite uses
  # the sample host, but the urls generated may need to
  # point to the configured host in the :js trait
  def urls
    ::Gitlab::Routing.url_helpers
  end

  def clear_host_from_memoized_variables
    [:metrics_regex, :grafana_regex, :clusters_regex, :alert_regex].each do |method_name|
      Gitlab::Metrics::Dashboard::Url.clear_memoization(method_name)
    end
  end
end