-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #759 from tschmidtb51/tests
Tests
- Loading branch information
Showing
10 changed files
with
382 additions
and
7 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
csaf_2.0/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_0-2021-6-1-08-02.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Mandatory test: Invalid CVSS (failing example 2)", | ||
"tracking": { | ||
"current_release_date": "2021-07-21T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-1-08-02", | ||
"initial_release_date": "2021-07-21T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2021-07-21T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"scores": [ | ||
{ | ||
"products": [ | ||
"CSAFPID-9080700" | ||
], | ||
"cvss_v3": { | ||
"version": "3.0", | ||
"vectorString": "CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H", | ||
"baseScore": 6.5 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
49 changes: 49 additions & 0 deletions
49
csaf_2.0/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_0-2021-6-1-08-03.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Mandatory test: Invalid CVSS (failing example 3)", | ||
"tracking": { | ||
"current_release_date": "2021-07-21T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-1-08-03", | ||
"initial_release_date": "2021-07-21T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2021-07-21T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"scores": [ | ||
{ | ||
"products": [ | ||
"CSAFPID-9080700" | ||
], | ||
"cvss_v2": { | ||
"vectorString": "AV:L/AC:L/Au:M/C:C/I:C/A:C", | ||
"baseScore": 6.5 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
51 changes: 51 additions & 0 deletions
51
csaf_2.0/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_0-2021-6-1-08-11.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Mandatory test: Invalid CVSS (valid example 1)", | ||
"tracking": { | ||
"current_release_date": "2021-07-21T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-1-08-11", | ||
"initial_release_date": "2021-07-21T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2021-07-21T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"scores": [ | ||
{ | ||
"products": [ | ||
"CSAFPID-9080700" | ||
], | ||
"cvss_v3": { | ||
"version": "3.1", | ||
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H", | ||
"baseScore": 6.5, | ||
"baseSeverity": "MEDIUM" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
51 changes: 51 additions & 0 deletions
51
csaf_2.0/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_0-2021-6-1-08-12.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Mandatory test: Invalid CVSS (valid example 2)", | ||
"tracking": { | ||
"current_release_date": "2021-07-21T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-1-08-12", | ||
"initial_release_date": "2021-07-21T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2021-07-21T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"scores": [ | ||
{ | ||
"products": [ | ||
"CSAFPID-9080700" | ||
], | ||
"cvss_v3": { | ||
"version": "3.0", | ||
"vectorString": "CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H", | ||
"baseScore": 6.5, | ||
"baseSeverity": "MEDIUM" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
50 changes: 50 additions & 0 deletions
50
csaf_2.0/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_0-2021-6-1-08-13.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Mandatory test: Invalid CVSS (valid example 3)", | ||
"tracking": { | ||
"current_release_date": "2021-07-21T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-1-08-13", | ||
"initial_release_date": "2021-07-21T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2021-07-21T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"scores": [ | ||
{ | ||
"products": [ | ||
"CSAFPID-9080700" | ||
], | ||
"cvss_v2": { | ||
"version": "2.0", | ||
"vectorString": "AV:L/AC:L/Au:M/C:C/I:C/A:C", | ||
"baseScore": 6.5 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
44 changes: 44 additions & 0 deletions
44
csaf_2.0/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_0-2021-6-1-08-14.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Mandatory test: Invalid CVSS (valid example 4)", | ||
"tracking": { | ||
"current_release_date": "2021-07-21T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-1-08-14", | ||
"initial_release_date": "2021-07-21T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2021-07-21T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"notes": [ | ||
{ | ||
"category": "summary", | ||
"text": "A vulnerability without CVSS passes the test as well." | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.