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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-02-15 02:43:44 +0300
committerThong Kuah <tkuah@gitlab.com>2019-02-15 02:43:44 +0300
commit13bb704d50cc885935bc7b0f850d47c1ace5cdd7 (patch)
treef062da3cd61f2cce2e7c74d81e796d0a278e8aba /spec/services
parent4e5494081e95adf05ab9df47c284bd796ecc4b01 (diff)
Remove #ready? method in favor of #available?
Given https://github.com/helm/helm/issues/3338, I think that we should exclude applications that are :update_errored, :updating as well.
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/prometheus/adapter_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/prometheus/adapter_service_spec.rb b/spec/services/prometheus/adapter_service_spec.rb
index 5fe9668fd9d..505e2935e93 100644
--- a/spec/services/prometheus/adapter_service_spec.rb
+++ b/spec/services/prometheus/adapter_service_spec.rb
@@ -22,7 +22,7 @@ describe Prometheus::AdapterService do
context "prometheus service can't execute queries" do
let(:prometheus_service) { double(:prometheus_service, can_query?: false) }
- context 'with cluster with prometheus not yet installed' do
+ context 'with cluster with prometheus not available' do
let!(:prometheus) { create(:clusters_applications_prometheus, :installable, cluster: cluster) }
it 'returns nil' do
@@ -30,7 +30,7 @@ describe Prometheus::AdapterService do
end
end
- context 'with cluster with prometheus installed' do
+ context 'with cluster with prometheus available' do
let!(:prometheus) { create(:clusters_applications_prometheus, :installed, cluster: cluster) }
it 'returns application handling all environments' do