Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/cloud_controller/diego/lifecycles/app_cnb_lifecycle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def create_lifecycle_data_model(app)
end

def valid?
return true if message.class.name.match?(/AppUpdateMessage/i)
Comment thread
pbusko marked this conversation as resolved.
Outdated

!buildpacks.empty?
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ module VCAP::CloudController
it 'invalid' do
expect(lifecycle.valid?).to be(false)
end

context 'during an update' do
let(:message) { VCAP::CloudController::AppUpdateMessage.new(request) }

it 'valid' do
expect(lifecycle.valid?).to be(true)
end
end
end

context 'with buildpacks' do
Expand Down