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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-19 09:09:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-19 09:09:36 +0300
commita04f7f36d7a8fb7657de899879f904e23b93ce42 (patch)
treee9e1afe2ecdfb62a9677944f63ee4d49e01d9f64 /spec/workers/clusters
parentdc97e5514114912508318ada1d35666d85fd3ab7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/clusters')
-rw-r--r--spec/workers/clusters/integrations/check_prometheus_health_worker_spec.rb (renamed from spec/workers/clusters/applications/check_prometheus_health_worker_spec.rb)8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/workers/clusters/applications/check_prometheus_health_worker_spec.rb b/spec/workers/clusters/integrations/check_prometheus_health_worker_spec.rb
index fb779bf3b01..6f70870bd09 100644
--- a/spec/workers/clusters/applications/check_prometheus_health_worker_spec.rb
+++ b/spec/workers/clusters/integrations/check_prometheus_health_worker_spec.rb
@@ -2,16 +2,16 @@
require 'spec_helper'
-RSpec.describe Clusters::Applications::CheckPrometheusHealthWorker, '#perform' do
+RSpec.describe Clusters::Integrations::CheckPrometheusHealthWorker, '#perform' do
subject { described_class.new.perform }
it 'triggers health service' do
cluster = create(:cluster)
allow(Gitlab::Monitor::DemoProjects).to receive(:primary_keys)
- allow(Clusters::Cluster).to receive_message_chain(:with_application_prometheus, :with_project_http_integrations).and_return([cluster])
+ allow(Clusters::Cluster).to receive_message_chain(:with_integration_prometheus, :with_project_http_integrations).and_return([cluster])
- service_instance = instance_double(Clusters::Applications::PrometheusHealthCheckService)
- expect(Clusters::Applications::PrometheusHealthCheckService).to receive(:new).with(cluster).and_return(service_instance)
+ service_instance = instance_double(Clusters::Integrations::PrometheusHealthCheckService)
+ expect(Clusters::Integrations::PrometheusHealthCheckService).to receive(:new).with(cluster).and_return(service_instance)
expect(service_instance).to receive(:execute)
subject