@@ -290,7 +290,7 @@ def test_run(self, mock_requests):
290290 app_id = self .create_app ()
291291
292292 # create build
293- body = {'image' : 'autotest/example' }
293+ body = {'image' : 'autotest/example' , 'stack' : 'container' }
294294 url = '/v2/apps/{app_id}/builds' .format (** locals ())
295295 response = self .client .post (url , body )
296296 self .assertEqual (response .status_code , 201 , response .data )
@@ -313,7 +313,7 @@ def test_run_failure(self, mock_requests):
313313 app_id = self .create_app ()
314314
315315 # create build
316- body = {'image' : 'autotest/example' }
316+ body = {'image' : 'autotest/example' , 'stack' : 'container' }
317317 url = '/v2/apps/{app_id}/builds' .format (** locals ())
318318 response = self .client .post (url , body )
319319 self .assertEqual (response .status_code , 201 , response .data )
@@ -507,7 +507,7 @@ def test_app_verify_application_health_success(self, mock_requests):
507507
508508 # deploy app to get verification
509509 url = "/v2/apps/{}/builds" .format (app_id )
510- body = {'image' : 'autotest/example' }
510+ body = {'image' : 'autotest/example' , 'stack' : 'container' }
511511 response = self .client .post (url , body )
512512 self .assertEqual (response .status_code , 201 , response .data )
513513 self .assertEqual (response .data ['image' ], body ['image' ])
@@ -541,7 +541,7 @@ def test_app_verify_application_health_failure_404(self, mock_requests):
541541
542542 # deploy app to get verification
543543 url = "/v2/apps/{}/builds" .format (app_id )
544- body = {'image' : 'autotest/example' }
544+ body = {'image' : 'autotest/example' , 'stack' : 'container' }
545545 response = self .client .post (url , body )
546546 self .assertEqual (response .status_code , 201 , response .data )
547547 self .assertEqual (response .data ['image' ], body ['image' ])
@@ -566,7 +566,7 @@ def _raise_exception(request, ctx):
566566
567567 # deploy app to get verification
568568 url = "/v2/apps/{}/builds" .format (app_id )
569- body = {'image' : 'autotest/example' }
569+ body = {'image' : 'autotest/example' , 'stack' : 'container' }
570570 response = self .client .post (url , body )
571571 self .assertEqual (response .status_code , 201 , response .data )
572572 self .assertEqual (response .data ['image' ], body ['image' ])
@@ -659,7 +659,7 @@ def test_build_env_vars(self, mock_requests):
659659 # Make sure an exception is raised when calling without a build available
660660 with self .assertRaises (DryccException ):
661661 app ._build_env_vars (app .release_set .latest ())
662- data = {'image' : 'autotest/example' }
662+ data = {'image' : 'autotest/example' , 'stack' : 'heroku-18' }
663663 url = "/v2/apps/{app.id}/builds" .format (** locals ())
664664 response = self .client .post (url , data )
665665 self .assertEqual (response .status_code , 201 , response .data )
@@ -697,7 +697,7 @@ def test_build_env_vars(self, mock_requests):
697697 def test_gather_app_settings (self , mock_requests ):
698698 app = App .objects .create (owner = self .user )
699699 app .save ()
700- data = {'image' : 'autotest/example' }
700+ data = {'image' : 'autotest/example' , 'stack' : 'container' }
701701 url = "/v2/apps/{app.id}/builds" .format (** locals ())
702702 response = self .client .post (url , data )
703703 self .assertEqual (response .status_code , 201 , response .data )
@@ -734,7 +734,7 @@ def test_app_name_bad_regex(self, mock_requests):
734734
735735 # deploy to an app that doesn't exist should fail with 404
736736 url = "/v2/apps/{}/builds" .format ('={}' .format (app_id ))
737- body = {'image' : 'autotest/example' }
737+ body = {'image' : 'autotest/example' , 'stack' : 'container' }
738738 response = self .client .post (url , body )
739739 self .assertEqual (response .status_code , 404 , response )
740740
0 commit comments