File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1373,7 +1373,7 @@ def limits_list(self, args):
13731373 app = args .get ('--app' )
13741374 if not app :
13751375 app = self ._session .app
1376- response = self ._dispatch ('get' , "/api/apps/{}/limit " .format (app ))
1376+ response = self ._dispatch ('get' , "/api/apps/{}/limits " .format (app ))
13771377 if response .status_code == requests .codes .ok : # @UndefinedVariable
13781378 self ._print_limits (app , response .json ())
13791379 else :
@@ -1426,7 +1426,7 @@ def limits_set(self, args):
14261426 try :
14271427 progress = TextProgress ()
14281428 progress .start ()
1429- response = self ._dispatch ('post' , "/api/apps/{}/limit " .format (app ), json .dumps (body ))
1429+ response = self ._dispatch ('post' , "/api/apps/{}/limits " .format (app ), json .dumps (body ))
14301430 finally :
14311431 progress .cancel ()
14321432 progress .join ()
@@ -1472,7 +1472,7 @@ def limits_unset(self, args):
14721472 try :
14731473 progress = TextProgress ()
14741474 progress .start ()
1475- response = self ._dispatch ('post' , "/api/apps/{}/limit " .format (app ), json .dumps (body ))
1475+ response = self ._dispatch ('post' , "/api/apps/{}/limits " .format (app ), json .dumps (body ))
14761476 finally :
14771477 progress .cancel ()
14781478 progress .join ()
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def test_limit_memory(self):
5050 response = self .client .post (url , json .dumps (body ), content_type = 'application/json' )
5151 self .assertEqual (response .status_code , 201 )
5252 app_id = response .data ['id' ]
53- url = '/api/apps/{app_id}/limit ' .format (** locals ())
53+ url = '/api/apps/{app_id}/limits ' .format (** locals ())
5454 # check default limit
5555 response = self .client .get (url , content_type = 'application/json' )
5656 self .assertEqual (response .status_code , 200 )
@@ -114,7 +114,7 @@ def test_limit_cpu(self):
114114 response = self .client .post (url , json .dumps (body ), content_type = 'application/json' )
115115 self .assertEqual (response .status_code , 201 )
116116 app_id = response .data ['id' ]
117- url = '/api/apps/{app_id}/limit ' .format (** locals ())
117+ url = '/api/apps/{app_id}/limits ' .format (** locals ())
118118 # check default limit
119119 response = self .client .get (url , content_type = 'application/json' )
120120 self .assertEqual (response .status_code , 200 )
Original file line number Diff line number Diff line change 258258 views .AppBuildViewSet .as_view ({'get' : 'retrieve' })),
259259 url (r'^apps/(?P<id>{})/builds/?' .format (settings .APP_URL_REGEX ),
260260 views .AppBuildViewSet .as_view ({'get' : 'list' , 'post' : 'create' })),
261- url (r'^apps/(?P<id>{})/limit /?' .format (settings .APP_URL_REGEX ),
261+ url (r'^apps/(?P<id>{})/limits /?' .format (settings .APP_URL_REGEX ),
262262 views .AppLimitViewSet .as_view ({'get' : 'retrieve' , 'post' : 'create' })),
263263 url (r'^apps/(?P<id>{})/releases/v(?P<version>[0-9]+)/?' .format (settings .APP_URL_REGEX ),
264264 views .AppReleaseViewSet .as_view ({'get' : 'retrieve' })),
You can’t perform that action at this time.
0 commit comments