summaryrefslogtreecommitdiff
path: root/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-04-15 16:42:43 +1000
committerStan Hu <stanhu@gmail.com>2019-04-29 22:55:12 -0700
commit3cac5b05b2fd8377883d42be5ee5e0fb2370db04 (patch)
treecf258d7eb7b71cfbe7fcc366fdcc9db472b41abd /spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
parent024ddcab17517befafc0c5163d66cdcaae1b69e6 (diff)
downloadgitlab-ce-3cac5b05b2fd8377883d42be5ee5e0fb2370db04.tar.gz
Fix uninstall specs: helm not uninstallable
Diffstat (limited to 'spec/services/clusters/applications/check_uninstall_progress_service_spec.rb')
-rw-r--r--spec/services/clusters/applications/check_uninstall_progress_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb b/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
index 084f29d9d2d..fedca51a1b4 100644
--- a/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
+++ b/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
@@ -5,7 +5,7 @@ require 'spec_helper'
describe Clusters::Applications::CheckUninstallProgressService do
RESCHEDULE_PHASES = Gitlab::Kubernetes::Pod::PHASES - [Gitlab::Kubernetes::Pod::SUCCEEDED, Gitlab::Kubernetes::Pod::FAILED].freeze
- let(:application) { create(:clusters_applications_helm, :uninstalling) }
+ let(:application) { create(:clusters_applications_prometheus, :uninstalling) }
let(:service) { described_class.new(application) }
let(:phase) { Gitlab::Kubernetes::Pod::UNKNOWN }
let(:errors) { nil }
@@ -95,12 +95,12 @@ describe Clusters::Applications::CheckUninstallProgressService do
service.execute
expect(application).to be_uninstall_errored
- expect(application.status_reason).to eq('Operation failed. Check pod logs for uninstall-helm for more details.')
+ expect(application.status_reason).to eq('Operation failed. Check pod logs for uninstall-prometheus for more details.')
end
end
context 'when timed out' do
- let(:application) { create(:clusters_applications_helm, :timeouted, :uninstalling) }
+ let(:application) { create(:clusters_applications_prometheus, :timeouted, :uninstalling) }
before do
expect(service).to receive(:installation_phase).once.and_return(phase)
@@ -112,7 +112,7 @@ describe Clusters::Applications::CheckUninstallProgressService do
service.execute
expect(application).to be_uninstall_errored
- expect(application.status_reason).to eq('Operation timed out. Check pod logs for uninstall-helm for more details.')
+ expect(application.status_reason).to eq('Operation timed out. Check pod logs for uninstall-prometheus for more details.')
end
end