diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-06-26 14:53:55 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-06-26 14:53:55 +0000 |
commit | b13cd6737a2cb175c1f4501c1c5e0d01c060fa39 (patch) | |
tree | f7eec0d426e9253418d8960e90f83516ab4d01bd /spec/support/helpers | |
parent | 5b97ea3e6ae872a5c72695a425083affad2d1dfc (diff) | |
download | gitlab-ce-b13cd6737a2cb175c1f4501c1c5e0d01c060fa39.tar.gz |
Always display environment selector
On the metrics dashboard, always display the environment selector,
even if there is no data to display for that environment. This allows
the user to switch to the metrics dashboard of another environment.
Diffstat (limited to 'spec/support/helpers')
-rw-r--r-- | spec/support/helpers/prometheus_helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/prometheus_helpers.rb b/spec/support/helpers/prometheus_helpers.rb index 87f825152cf..db662836013 100644 --- a/spec/support/helpers/prometheus_helpers.rb +++ b/spec/support/helpers/prometheus_helpers.rb @@ -70,6 +70,10 @@ module PrometheusHelpers WebMock.stub_request(:get, url).to_raise(exception_type) end + def stub_any_prometheus_request + WebMock.stub_request(:any, /prometheus.example.com/) + end + def stub_all_prometheus_requests(environment_slug, body: nil, status: 200) stub_prometheus_request( prometheus_query_with_time_url(prometheus_memory_query(environment_slug), Time.now.utc), |