Skip to content

Use the package-url test suite

Brian Williams requested to merge bwill/use-package-url-test-suite into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Use the suite of tests provided alongside the package-url specification at https://github.com/package-url/purl-spec/blob/56fb237fbe0368e5e3c5df90bcfc516d51d95944/test-suite-data.json in order to test the package url parser.

This ensures that the parser conforms to the specification. As a result of this change, I've had to update parts of the parser which were not conforming to the specification.

For more background on Package URL and what this code does, see !102213 (merged) or check out the Package URL readme

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Brian Williams

Merge request reports