diff options
Diffstat (limited to 'spec/services/pod_logs/base_service_spec.rb')
-rw-r--r-- | spec/services/pod_logs/base_service_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/services/pod_logs/base_service_spec.rb b/spec/services/pod_logs/base_service_spec.rb index d93ea51eae1..fb53321352b 100644 --- a/spec/services/pod_logs/base_service_spec.rb +++ b/spec/services/pod_logs/base_service_spec.rb @@ -9,11 +9,13 @@ describe ::PodLogs::BaseService do let(:namespace) { 'autodevops-deploy-9-production' } let(:pod_name) { 'pod-1' } + let(:pod_name_2) { 'pod-2' } let(:container_name) { 'container-0' } let(:params) { {} } let(:raw_pods) do JSON.parse([ - kube_pod(name: pod_name) + kube_pod(name: pod_name), + kube_pod(name: pod_name_2) ].to_json, object_class: OpenStruct) end @@ -115,7 +117,7 @@ describe ::PodLogs::BaseService do result = subject.send(:get_pod_names, raw_pods: raw_pods) expect(result[:status]).to eq(:success) - expect(result[:pods]).to eq([pod_name]) + expect(result[:pods]).to eq([pod_name, pod_name_2]) end end end |