@@ -59,7 +59,7 @@ def test_api_with_single_vulnerability(self):
5959 ).data
6060 assert response == {
6161 "url" : f"http://testserver/api/vulnerabilities/{ self .vulnerability .id } " ,
62- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vulnerability .id ). upper () } " ,
62+ "vulnerability_id" : self .vulnerability .vulnerability_id ,
6363 "summary" : "test" ,
6464 "aliases" : [],
6565 "fixed_packages" : [
@@ -84,7 +84,7 @@ def test_api_with_single_vulnerability_with_filters(self):
8484 ).data
8585 assert response == {
8686 "url" : f"http://testserver/api/vulnerabilities/{ self .vulnerability .id } " ,
87- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vulnerability .id ). upper () } " ,
87+ "vulnerability_id" : self .vulnerability .vulnerability_id ,
8888 "summary" : "test" ,
8989 "aliases" : [],
9090 "fixed_packages" : [
@@ -182,7 +182,7 @@ def test_api_with_single_vulnerability_and_fixed_package(self):
182182 "affected_by_vulnerabilities" : [
183183 {
184184 "url" : f"http://testserver/api/vulnerabilities/{ self .vuln1 .id } " ,
185- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vuln1 .id ). upper () } " ,
185+ "vulnerability_id" : self .vuln1 .vulnerability_id ,
186186 "summary" : "test-vuln1" ,
187187 "references" : [],
188188 "fixed_packages" : [],
@@ -191,7 +191,7 @@ def test_api_with_single_vulnerability_and_fixed_package(self):
191191 "fixing_vulnerabilities" : [
192192 {
193193 "url" : f"http://testserver/api/vulnerabilities/{ self .vuln .id } " ,
194- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vuln .id ). upper () } " ,
194+ "vulnerability_id" : self .vuln .vulnerability_id ,
195195 "summary" : "test-vuln" ,
196196 "references" : [],
197197 "fixed_packages" : [
@@ -206,7 +206,7 @@ def test_api_with_single_vulnerability_and_fixed_package(self):
206206 "unresolved_vulnerabilities" : [
207207 {
208208 "url" : f"http://testserver/api/vulnerabilities/{ self .vuln1 .id } " ,
209- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vuln1 .id ). upper () } " ,
209+ "vulnerability_id" : self .vuln1 .vulnerability_id ,
210210 "summary" : "test-vuln1" ,
211211 "references" : [],
212212 "fixed_packages" : [],
@@ -228,7 +228,7 @@ def test_api_with_single_vulnerability_and_vulnerable_package(self):
228228 "affected_by_vulnerabilities" : [
229229 {
230230 "url" : f"http://testserver/api/vulnerabilities/{ self .vuln .id } " ,
231- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vuln .id ). upper () } " ,
231+ "vulnerability_id" : self .vuln .vulnerability_id ,
232232 "summary" : "test-vuln" ,
233233 "references" : [],
234234 "fixed_packages" : [
@@ -244,7 +244,7 @@ def test_api_with_single_vulnerability_and_vulnerable_package(self):
244244 "unresolved_vulnerabilities" : [
245245 {
246246 "url" : f"http://testserver/api/vulnerabilities/{ self .vuln .id } " ,
247- "vulnerability_id" : f"VULCOID- { int_to_base36 ( self .vuln .id ). upper () } " ,
247+ "vulnerability_id" : self .vuln .vulnerability_id ,
248248 "summary" : "test-vuln" ,
249249 "references" : [],
250250 "fixed_packages" : [
0 commit comments