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

Tests 6.3.8 #893

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"document": {
"category": "csaf_base",
"csaf_version": "2.0",
"lang": "en",
"publisher": {
"category": "other",
"name": "OASIS CSAF TC",
"namespace": "https://csaf.io"
},
"title": "Informative test: Spell check (failing example 2)",
"tracking": {
"current_release_date": "2021-07-21T10:00:00.000Z",
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-3-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": {
"branches": [
{
"branches": [
{
"branches": [
{
"category": "product_version",
"name": "17.4",
"product": {
"name": "Example Company Pruduct A 17.4",
"product_id": "CSAFPID-9080700"
}
}
],
"category": "product_name",
"name": "Pruduct A"
}
],
"category": "vendor",
"name": "Example Company"
}
]
},
"vulnerabilities": [
{
"notes": [
{
"category": "summary",
"text": "A vulnerapility exists in an undisclused component that allows an unauthenticated remote addacker to x-cute arbitrary code with rood priviledges.",
"title": "Vu1nerability sommary"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"document": {
"category": "csaf_base",
"csaf_version": "2.0",
"lang": "en",
"publisher": {
"category": "other",
"name": "OASIS CSAF TC",
"namespace": "https://csaf.io"
},
"title": "Informative test: Spell check (valid example 2)",
"tracking": {
"current_release_date": "2021-07-21T10:00:00.000Z",
"id": "OASIS_CSAF_TC-CSAF_2.0-2021-6-3-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": {
"branches": [
{
"branches": [
{
"branches": [
{
"category": "product_version",
"name": "17.4",
"product": {
"name": "Example Company Product A 17.4",
"product_id": "CSAFPID-9080700"
}
}
],
"category": "product_name",
"name": "Product A"
}
],
"category": "vendor",
"name": "Example Company"
}
]
},
"vulnerabilities": [
{
"notes": [
{
"category": "summary",
"text": "A vulnerability exists in an undisclosed component that allows an unauthenticated remote attacker to execute arbitrary code with root privileges.",
"title": "Vulnerability summary"
}
]
}
]
}
8 changes: 8 additions & 0 deletions csaf_2.0/test/validator/data/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,12 +1325,20 @@
{
"name": "informative/oasis_csaf_tc-csaf_2_0-2021-6-3-08-01.json",
"valid": true
},
{
"name": "informative/oasis_csaf_tc-csaf_2_0-2021-6-3-08-02.json",
"valid": true
}
],
"valid": [
{
"name": "informative/oasis_csaf_tc-csaf_2_0-2021-6-3-08-11.json",
"valid": true
},
{
"name": "informative/oasis_csaf_tc-csaf_2_0-2021-6-3-08-12.json",
"valid": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/csaf_json_schema.json",
"document": {
"category": "csaf_base",
"csaf_version": "2.1",
"distribution": {
"tlp": {
"label": "CLEAR"
}
},
"lang": "en",
"publisher": {
"category": "other",
"name": "OASIS CSAF TC",
"namespace": "https://csaf.io"
},
"title": "Informative test: Spell check (failing example 2)",
"tracking": {
"current_release_date": "2024-01-24T10:00:00.000Z",
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-3-08-02",
"initial_release_date": "2024-01-24T10:00:00.000Z",
"revision_history": [
{
"date": "2024-01-24T10:00:00.000Z",
"number": "1",
"summary": "Initial version."
}
],
"status": "final",
"version": "1"
}
},
"product_tree": {
"branches": [
{
"branches": [
{
"branches": [
{
"category": "product_version",
"name": "17.4",
"product": {
"name": "Example Company Produkt A 17.4",
"product_id": "CSAFPID-9080700"
}
}
],
"category": "product_name",
"name": "Produkt A"
}
],
"category": "vendor",
"name": "Example Company"
}
]
},
"vulnerabilities": [
{
"notes": [
{
"category": "summary",
"text": "A vulnerability exists in an undisclosed combonent that allows an unauthenticated renote attacker to x-cute arbitrary code with root privileges.",
"title": "Vuknerability sumsary"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/csaf_json_schema.json",
"document": {
"category": "csaf_base",
"csaf_version": "2.1",
"distribution": {
"tlp": {
"label": "CLEAR"
}
},
"lang": "en",
"publisher": {
"category": "other",
"name": "OASIS CSAF TC",
"namespace": "https://csaf.io"
},
"title": "Informative test: Spell check (valid example 2)",
"tracking": {
"current_release_date": "2024-01-24T10:00:00.000Z",
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-3-08-12",
"initial_release_date": "2024-01-24T10:00:00.000Z",
"revision_history": [
{
"date": "2024-01-24T10:00:00.000Z",
"number": "1",
"summary": "Initial version."
}
],
"status": "final",
"version": "1"
}
},
"product_tree": {
"branches": [
{
"branches": [
{
"branches": [
{
"category": "product_version",
"name": "17.4",
"product": {
"name": "Example Company Product A 17.4",
"product_id": "CSAFPID-9080700"
}
}
],
"category": "product_name",
"name": "Product A"
}
],
"category": "vendor",
"name": "Example Company"
}
]
},
"vulnerabilities": [
{
"notes": [
{
"category": "summary",
"text": "A vulnerability exists in an undisclosed component that allows an unauthenticated remote attacker to execute arbitrary code with root privileges.",
"title": "Vulnerability summary"
}
]
}
]
}
8 changes: 8 additions & 0 deletions csaf_2.1/test/validator/data/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -2169,12 +2169,20 @@
{
"name": "informative/oasis_csaf_tc-csaf_2_1-2024-6-3-08-01.json",
"valid": true
},
{
"name": "informative/oasis_csaf_tc-csaf_2_1-2024-6-3-08-02.json",
"valid": true
}
],
"valid": [
{
"name": "informative/oasis_csaf_tc-csaf_2_1-2024-6-3-08-11.json",
"valid": true
},
{
"name": "informative/oasis_csaf_tc-csaf_2_1-2024-6-3-08-12.json",
"valid": true
}
]
},
Expand Down