summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-12-19 10:38:29 +0100
committerRémy Coutable <remy@rymai.me>2018-12-19 10:38:29 +0100
commit6d4c2529f94e7d96a456cf14d8f5187087637f32 (patch)
tree8097d9210c75ce8bc9dec8bfe35591315f3add6f /spec
parent22f658e039711249bf1023b85d006ea4f869c400 (diff)
downloadgitlab-ce-6d4c2529f94e7d96a456cf14d8f5187087637f32.tar.gz
Handle nil terminals in Clusters::Platforms::Kubernetes
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec')
-rw-r--r--spec/models/clusters/platforms/kubernetes_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/clusters/platforms/kubernetes_spec.rb b/spec/models/clusters/platforms/kubernetes_spec.rb
index 062d2fd0768..b30f80a4b3e 100644
--- a/spec/models/clusters/platforms/kubernetes_spec.rb
+++ b/spec/models/clusters/platforms/kubernetes_spec.rb
@@ -325,12 +325,13 @@ describe Clusters::Platforms::Kubernetes, :use_clean_rails_memory_store_caching
context 'with valid pods' do
let(:pod) { kube_pod(app: environment.slug) }
+ let(:pod_with_no_terminal) { kube_pod(app: environment.slug, status: "Pending") }
let(:terminals) { kube_terminals(service, pod) }
before do
stub_reactive_cache(
service,
- pods: [pod, pod, kube_pod(app: "should-be-filtered-out")]
+ pods: [pod, pod, pod_with_no_terminal, kube_pod(app: "should-be-filtered-out")]
)
end