diff options
author | Tiger <twatson@gitlab.com> | 2019-05-22 13:55:15 -0500 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-06-25 09:22:20 +1000 |
commit | 90c27ea52ada6bc3f3a18bcf61f9c034c8cb65ba (patch) | |
tree | 5f83528e99902b59ab9f95b2aaa2b2573a962078 /spec/workers | |
parent | db9783f7826ed5ba58a8941dd80a1cd7dda517b0 (diff) | |
download | gitlab-ce-90c27ea52ada6bc3f3a18bcf61f9c034c8cb65ba.tar.gz |
Move terminal construction logic to Environment61156-instance-level-cluster-pod-terminal-access
This enables terminals for group and project level clusters.
Previously there was no way to determine which project (and
therefore kubernetes namespace) to connect to, moving this
logic onto Environment means the assoicated project can be
used to look up the correct namespace.
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 |