@@ -46,13 +46,13 @@ module VCAP::CloudController
4646 let ( :buildpack2_file ) { 'abuildpack2.zip' }
4747
4848 let ( :buildpack1a_fields ) do
49- { name : 'buildpack1' , file : buildpack1a_file , stack : 'cflinuxfs11' , options : { } }
49+ { name : 'buildpack1' , file : buildpack1a_file , stack : 'cflinuxfs11' , options : { lifecycle : Lifecycles :: BUILDPACK } }
5050 end
5151 let ( :buildpack1b_fields ) do
52- { name : 'buildpack1' , file : buildpack1b_file , stack : 'cflinuxfs12' , options : { } }
52+ { name : 'buildpack1' , file : buildpack1b_file , stack : 'cflinuxfs12' , options : { lifecycle : Lifecycles :: BUILDPACK } }
5353 end
5454 let ( :buildpack2_fields ) do
55- { name : 'buildpack2' , file : buildpack2_file , stack : nil , options : { } }
55+ { name : 'buildpack2' , file : buildpack2_file , stack : nil , options : { lifecycle : Lifecycles :: BUILDPACK } }
5656 end
5757
5858 before do
@@ -152,7 +152,7 @@ module VCAP::CloudController
152152 # call install
153153 # verify that job_factory.plan was called with the right file
154154 expect ( File ) . to receive ( :file? ) . with ( 'another.zip' ) . and_return ( true )
155- expect ( job_factory ) . to receive ( :plan ) . with ( 'buildpack1' , [ { name : 'buildpack1' , file : 'another.zip' , stack : nil , options : { } } ] )
155+ expect ( job_factory ) . to receive ( :plan ) . with ( 'buildpack1' , [ { name : 'buildpack1' , file : 'another.zip' , stack : nil , options : { lifecycle : Lifecycles :: BUILDPACK } } ] )
156156
157157 installer . install ( TestConfig . config_instance . get ( :install_buildpacks ) )
158158 end
@@ -166,7 +166,7 @@ module VCAP::CloudController
166166 it 'succeeds when no package is specified' do
167167 TestConfig . config [ :install_buildpacks ] [ 0 ] . delete ( 'package' )
168168 expect ( File ) . to receive ( :file? ) . with ( 'another.zip' ) . and_return ( true )
169- expect ( job_factory ) . to receive ( :plan ) . with ( 'buildpack1' , [ { name : 'buildpack1' , file : 'another.zip' , stack : nil , options : { } } ] )
169+ expect ( job_factory ) . to receive ( :plan ) . with ( 'buildpack1' , [ { name : 'buildpack1' , file : 'another.zip' , stack : nil , options : { lifecycle : Lifecycles :: BUILDPACK } } ] )
170170
171171 installer . install ( TestConfig . config_instance . get ( :install_buildpacks ) )
172172 end
@@ -224,6 +224,7 @@ module VCAP::CloudController
224224 stack : nil ,
225225 options : {
226226 enabled : true ,
227+ lifecycle : Lifecycles ::BUILDPACK ,
227228 locked : false ,
228229 position : 5
229230 } } ] )
0 commit comments