-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- addresses parts of #749, #341 - clarify that timestamps might have different timezones - add invalid example for 6.2.6 - add valid examples for 6.2.6
- Loading branch information
1 parent
9404cda
commit 6d7329e
Showing
5 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
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
36 changes: 36 additions & 0 deletions
36
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-06-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,36 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Older Current Release Date than Revision History (failing example 2)", | ||
"tracking": { | ||
"current_release_date": "2024-01-21T11:00:00.000-01:00", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-06-02", | ||
"initial_release_date": "2023-09-06T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2023-09-06T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
}, | ||
{ | ||
"date": "2024-01-21T11:00:00.000+10:00", | ||
"number": "2", | ||
"summary": "Second version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "2" | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-06-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,36 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Older Current Release Date than Revision History (valid example 1)", | ||
"tracking": { | ||
"current_release_date": "2024-01-21T11:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-06-11", | ||
"initial_release_date": "2023-09-06T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2023-09-06T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
}, | ||
{ | ||
"date": "2024-01-21T11:00:00.000Z", | ||
"number": "2", | ||
"summary": "Second version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "2" | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-06-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,36 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Older Current Release Date than Revision History (valid example 2)", | ||
"tracking": { | ||
"current_release_date": "2024-01-21T11:00:00.000+10:00", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-06-12", | ||
"initial_release_date": "2023-09-06T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2023-09-06T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
}, | ||
{ | ||
"date": "2024-01-21T11:00:00.000+10:00", | ||
"number": "2", | ||
"summary": "Second version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "2" | ||
} | ||
} | ||
} |
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