Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_create_cve does not have a dataVersion 5.1.0 test #1207

Open
ElectricNroff opened this issue Mar 15, 2024 · 0 comments
Open

test_create_cve does not have a dataVersion 5.1.0 test #1207

ElectricNroff opened this issue Mar 15, 2024 · 0 comments

Comments

@ElectricNroff
Copy link
Contributor

#### 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"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Triage
Development

No branches or pull requests

2 participants