File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ Version v30.2.2
99- We enabled API throttling for a basic user and for a staff user
1010 they can have unlimited access on API.
1111
12+ - We added throttle rate for each API endpoint and it can be
13+ configured from the settings #991 https://github.com/nexB/vulnerablecode/issues/991.
14+
1215
1316Version v30.2.1
1417----------------
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def test_packages_endpoint_throttling(self):
5151
5252 def test_cpes_endpoint_throttling (self ):
5353
54- # A basic user can only access /cpes endpoint 5 times a day
54+ # A basic user can only access /cpes endpoint 4 times a day
5555 for i in range (0 , 4 ):
5656 response = self .csrf_client .get ("/api/cpes" )
5757 self .assertEqual (response .status_code , 200 )
@@ -85,7 +85,7 @@ def test_all_vulnerable_packages_endpoint_throttling(self):
8585
8686 def test_vulnerabilities_endpoint_throttling (self ):
8787
88- # A basic user can only access /vulnerabilities 10 times a day
88+ # A basic user can only access /vulnerabilities 8 times a day
8989 for i in range (0 , 8 ):
9090 response = self .csrf_client .get ("/api/vulnerabilities" )
9191 self .assertEqual (response .status_code , 200 )
@@ -120,7 +120,7 @@ def test_aliases_endpoint_throttling(self):
120120 def test_bulk_search_packages_endpoint_throttling (self ):
121121 data = json .dumps ({"purls" : ["pkg:foo/bar" ]})
122122
123- # A basic user can only access /packages/bulk_search 5 times a day
123+ # A basic user can only access /packages/bulk_search 6 times a day
124124 for i in range (0 , 6 ):
125125 response = self .csrf_client .post (
126126 "/api/packages/bulk_search" , data = data , content_type = "application/json"
You can’t perform that action at this time.
0 commit comments