Skip to content

Commit

Permalink
PURLs
Browse files Browse the repository at this point in the history
- addresses parts of oasis-tcs#774, oasis-tcs#781, oasis-tcs#341
- improve wording
- add valid example
  • Loading branch information
tschmidtb51 committed Jan 13, 2025
1 parent 918a9c0 commit 8a4229c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion csaf_2.1/prose/edit/src/tests-01-mndtr-13-purl.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### PURL

It MUST be tested that given purl is valid.
It MUST be tested that all given purls are valid.

The relevant paths for this test are:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$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"
}
},
"publisher": {
"category": "other",
"name": "OASIS CSAF TC",
"namespace": "https://csaf.io"
},
"title": "Mandatory test: PURL (valid example 1)",
"tracking": {
"current_release_date": "2024-01-24T10:00:00.000Z",
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-1-13-11",
"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": {
"full_product_names": [
{
"name": "Product A",
"product_id": "CSAFPID-9080700",
"product_identification_helper": {
"purls": [
"pkg:maven/com.example/product-A"
]
}
}
]
}
}
6 changes: 6 additions & 0 deletions csaf_2.1/test/validator/data/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@
"name": "mandatory/oasis_csaf_tc-csaf_2_1-2024-6-1-13-01.json",
"valid": false
}
],
"valid": [
{
"name": "mandatory/oasis_csaf_tc-csaf_2_1-2024-6-1-13-11.json",
"valid": true
}
]
},
{
Expand Down

0 comments on commit 8a4229c

Please sign in to comment.