Commit 0ad0db9c authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'ee-remove_make_updated_cluster_applications' into 'master'

Remove #make_updated! as have #make_installed! now

See merge request gitlab-org/gitlab-ee!9476
parents db660d91 1b64815e
......@@ -41,11 +41,6 @@ module Clusters
transition [:installed, :updated, :update_errored, :scheduled] => :updating
end
# Deprecated
event :make_updated do
transition [:updating] => :updated
end
event :make_update_errored do
transition any => :update_errored
end
......
......@@ -21,7 +21,7 @@ module Clusters
private
def on_success
app.make_updated!
app.make_installed!
ensure
remove_pod
end
......
......@@ -80,36 +80,6 @@ shared_examples 'cluster application status specs' do |application_name|
end
end
describe '#make_updated' do
subject { create(application_name, :updating) }
it 'is updated' do
subject.make_updated!
expect(subject).to be_updated
end
it 'updates helm version' do
subject.cluster.application_helm.update!(version: '1.2.3')
subject.make_updated!
subject.cluster.application_helm.reload
expect(subject.cluster.application_helm.version).to eq(Gitlab::Kubernetes::Helm::HELM_VERSION)
end
it 'updates the version for the application' do
subject.update!(version: '0.0.0')
subject.make_updated!
subject.reload
expect(subject.version).to eq(subject.class.const_get(:VERSION))
end
end
describe '#make_errored' do
subject { create(application_name, :installing) }
let(:reason) { 'some errors' }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment