@@ -247,7 +247,7 @@ def test_run(self, mock_requests):
247247
248248 # create build
249249 body = {'image' : 'autotest/example' , 'stack' : 'container' }
250- url = f'/v2/apps/{ app_id } /builds '
250+ url = f'/v2/apps/{ app_id } /build '
251251 response = self .client .post (url , body )
252252 self .assertEqual (response .status_code , 201 , response .data )
253253
@@ -271,7 +271,7 @@ def test_run_failure(self, mock_requests):
271271
272272 # create build
273273 body = {'image' : 'autotest/example' , 'stack' : 'container' }
274- url = f'/v2/apps/{ app_id } /builds '
274+ url = f'/v2/apps/{ app_id } /build '
275275 response = self .client .post (url , body )
276276 self .assertEqual (response .status_code , 201 , response .data )
277277
@@ -453,7 +453,7 @@ def test_app_verify_application_health_success(self, mock_requests):
453453 mr = mock_requests .register_uri ('GET' , hostname , responses )
454454
455455 # deploy app to get verification
456- url = "/v2/apps/{}/builds " .format (app_id )
456+ url = "/v2/apps/{}/build " .format (app_id )
457457 body = {'image' : 'autotest/example' , 'stack' : 'container' }
458458 response = self .client .post (url , body )
459459 self .assertEqual (response .status_code , 201 , response .data )
@@ -488,7 +488,7 @@ def test_app_verify_application_health_failure_404(self, mock_requests):
488488 app_id , app_id , settings .KUBERNETES_CLUSTER_DOMAIN )
489489 mr = mock_requests .register_uri ('GET' , hostname , responses )
490490 # deploy app to get verification
491- url = "/v2/apps/{}/builds " .format (app_id )
491+ url = "/v2/apps/{}/build " .format (app_id )
492492 body = {'image' : 'autotest/example' , 'stack' : 'container' }
493493 response = self .client .post (url , body )
494494 self .assertEqual (response .status_code , 201 , response .data )
@@ -513,7 +513,7 @@ def _raise_exception(request, ctx):
513513 mr = mock_requests .register_uri ('GET' , hostname , text = _raise_exception )
514514
515515 # deploy app to get verification
516- url = "/v2/apps/{}/builds " .format (app_id )
516+ url = "/v2/apps/{}/build " .format (app_id )
517517 body = {'image' : 'autotest/example' , 'stack' : 'container' }
518518 response = self .client .post (url , body )
519519 self .assertEqual (response .status_code , 201 , response .data )
@@ -589,7 +589,7 @@ def test_build_env_vars(self, mock_requests):
589589 with self .assertRaises (DryccException ):
590590 app ._build_env_vars (app .release_set .latest (), PTYPE_WEB )
591591 data = {'image' : 'autotest/example' , 'stack' : 'heroku-18' }
592- url = f"/v2/apps/{ app .id } /builds "
592+ url = f"/v2/apps/{ app .id } /build "
593593 response = self .client .post (url , data )
594594 self .assertEqual (response .status_code , 201 , response .data )
595595 time_created = app .release_set .latest ().created
@@ -624,7 +624,7 @@ def test_gather_app_settings(self, mock_requests):
624624 app = App .objects .create (owner = self .user )
625625 app .save ()
626626 data = {'image' : 'autotest/example' , 'stack' : 'container' }
627- url = f"/v2/apps/{ app .id } /builds "
627+ url = f"/v2/apps/{ app .id } /build "
628628 response = self .client .post (url , data )
629629 self .assertEqual (response .status_code , 201 , response .data )
630630 Config .objects .create (
@@ -659,7 +659,7 @@ def test_app_name_bad_regex(self, mock_requests):
659659 self .assertEqual (response .data ['results' ][0 ]['id' ], app_id , response .data )
660660
661661 # deploy to an app that doesn't exist should fail with 404
662- url = "/v2/apps/{}/builds " .format ('={}' .format (app_id ))
662+ url = "/v2/apps/{}/build " .format ('={}' .format (app_id ))
663663 body = {'image' : 'autotest/example' , 'stack' : 'container' }
664664 response = self .client .post (url , body )
665665 self .assertEqual (response .status_code , 404 , response )
0 commit comments