Schema for Package-URL building and parsing tests with input and expected output.
No Additional PropertiesContains the URL of the JSON schema for Package-URL tests.
A list of Package-URL build and parse tests.
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsA PURL test with input and expected output.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"parse"
false
A PURL string to use as a test input (canonical or not).
Test output as an object decoded PURL components, unless expected_failure.
No Additional PropertiesPackage-URL type component.
Package-URL namespace decoded component.
Package-URL name decoded component.
Package-URL version decoded component.
Package-URL qualifiers decoded component as an object.
Package-URL subpath decoded component.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"build"
false
Test output as an object decoded PURL components, unless expected_failure.
No Additional PropertiesPackage-URL type component.
Package-URL namespace decoded component.
Package-URL name decoded component.
Package-URL version decoded component.
Package-URL qualifiers decoded component as an object.
Package-URL subpath decoded component.
A canonical PURL string to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"roundtrip"
A PURL string to use as a test input (canonical or not).
A canonical PURL string to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"parse"
true
A PURL string to use as a test input (canonical or not).
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"build"
true
Test output as an object decoded PURL components, unless expected_failure.
No Additional PropertiesPackage-URL type component.
Package-URL namespace decoded component.
Package-URL name decoded component.
Package-URL version decoded component.
Package-URL qualifiers decoded component as an object.
Package-URL subpath decoded component.
A description for this test.
The group of this test like 'base' or 'advanced'.
Test group for base conformance tests for PURL building and parsing.
Test group for advanced tests to support flexible PURL building and parsing.
The type of this test like 'build' or 'parse'.
A PURL building test from decoded components to a canonical PURL string.
A PURL building test from decoded components to a canonical PURL string.
A PURL roundtrip test, parsing then building back a PURL from a canonical string input.
true if this test input is expected to fail to be processed.
The reason why this test is is expected to fail if expected_failure is true.