diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-07 09:34:07 +0100 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-07 10:10:57 +0100 |
commit | f9364929bacf9ed68e32bb50758e24715d404069 (patch) | |
tree | f77872bd9da21dced7ae1fd39564ef7602dfab15 /spec/services | |
parent | 8638cf66d9212143749a85b4429b52fde2169026 (diff) | |
download | gitlab-ce-f9364929bacf9ed68e32bb50758e24715d404069.tar.gz |
Rename application_helm factory to cluster_application_helm
Diffstat (limited to 'spec/services')
3 files changed, 5 insertions, 5 deletions
diff --git a/spec/services/clusters/applications/check_installation_progress_service_spec.rb b/spec/services/clusters/applications/check_installation_progress_service_spec.rb index faa5b469069..75fc05d36e9 100644 --- a/spec/services/clusters/applications/check_installation_progress_service_spec.rb +++ b/spec/services/clusters/applications/check_installation_progress_service_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Clusters::Applications::CheckInstallationProgressService do RESCHEDULE_PHASES = Gitlab::Kubernetes::Pod::PHASES - [Gitlab::Kubernetes::Pod::SUCCEEDED, Gitlab::Kubernetes::Pod::FAILED].freeze - let(:application) { create(:applications_helm, :installing) } + let(:application) { create(:cluster_applications_helm, :installing) } let(:service) { described_class.new(application) } let(:phase) { Gitlab::Kubernetes::Pod::UNKNOWN } let(:errors) { nil } @@ -33,7 +33,7 @@ describe Clusters::Applications::CheckInstallationProgressService do end context 'when timeouted' do - let(:application) { create(:applications_helm, :timeouted) } + let(:application) { create(:cluster_applications_helm, :timeouted) } it_behaves_like 'a terminated installation' diff --git a/spec/services/clusters/applications/install_service_spec.rb b/spec/services/clusters/applications/install_service_spec.rb index a646dac1cae..ae8dc7b2bd9 100644 --- a/spec/services/clusters/applications/install_service_spec.rb +++ b/spec/services/clusters/applications/install_service_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe Clusters::Applications::InstallService do describe '#execute' do - let(:application) { create(:applications_helm, :scheduled) } + let(:application) { create(:cluster_applications_helm, :scheduled) } let(:service) { described_class.new(application) } context 'when there are no errors' do @@ -39,7 +39,7 @@ describe Clusters::Applications::InstallService do end context 'when application cannot be persisted' do - let(:application) { build(:applications_helm, :scheduled) } + let(:application) { build(:cluster_applications_helm, :scheduled) } it 'make the application errored' do expect(application).to receive(:make_installing!).once.and_raise(ActiveRecord::RecordInvalid) diff --git a/spec/services/clusters/applications/schedule_installation_service_spec.rb b/spec/services/clusters/applications/schedule_installation_service_spec.rb index 6ba587a41db..cf95361c935 100644 --- a/spec/services/clusters/applications/schedule_installation_service_spec.rb +++ b/spec/services/clusters/applications/schedule_installation_service_spec.rb @@ -32,7 +32,7 @@ describe Clusters::Applications::ScheduleInstallationService do end context 'when installation is already in progress' do - let(:application) { create(:applications_helm, :installing) } + let(:application) { create(:cluster_applications_helm, :installing) } let(:cluster) { application.cluster } it_behaves_like 'a failing service' |