CVEProject/cve-services

test_create_cve does not have a dataVersion 5.1.0 test

ElectricNroff opened this issue · 0 comments

#### POST /cve/:id ####
def test_create_cve():
""" publish a cve in the PUBLISHED state """
with open('./src/test/cve_tests/cve_record_fixtures/CVE-2000-0008_published.json') as json_file:

"dataType": "CVE_RECORD",
"dataVersion": "5.1"

but CVE Records may realistically be sent with "dataVersion": "5.1.0" to match:

"dataVersion": {
"description": "The version of the CVE schema used for validating this record. Used to support multiple versions of this format.",
"type": "string",
"pattern": "^5\\.(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))?$",
"default": "5.1.0"
},