diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-06-27 03:30:17 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-06-27 03:30:17 +0300 |
commit | 924d7aff26efd98d39b1ba049b07f09743f61c16 (patch) | |
tree | cbdb647d9b3f50509c70b69f16e16d39e27122ce /spec/workers | |
parent | d7fa6d13cda395fd8e3be2a41bab67911a7599bb (diff) | |
parent | 90c27ea52ada6bc3f3a18bcf61f9c034c8cb65ba (diff) |
Merge branch '61156-instance-level-cluster-pod-terminal-access' into 'master'
Instance-level cluster pod terminal access
Closes #55489, #55488, #55487, and #61156
See merge request gitlab-org/gitlab-ce!28613
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/reactive_caching_worker_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/workers/reactive_caching_worker_spec.rb b/spec/workers/reactive_caching_worker_spec.rb index b8ca6063ccd..ca0e76fc19a 100644 --- a/spec/workers/reactive_caching_worker_spec.rb +++ b/spec/workers/reactive_caching_worker_spec.rb @@ -3,17 +3,16 @@ require 'spec_helper' describe ReactiveCachingWorker do - let(:service) { project.deployment_platform } - describe '#perform' do context 'when user configured kubernetes from CI/CD > Clusters' do let!(:cluster) { create(:cluster, :project, :provided_by_gcp) } let(:project) { cluster.project } + let!(:environment) { create(:environment, project: project) } it 'calls #exclusively_update_reactive_cache!' do - expect_any_instance_of(Clusters::Platforms::Kubernetes).to receive(:exclusively_update_reactive_cache!) + expect_any_instance_of(Environment).to receive(:exclusively_update_reactive_cache!) - described_class.new.perform("Clusters::Platforms::Kubernetes", service.id) + described_class.new.perform("Environment", environment.id) end end end |