Debian Codegraph @

t/purl/types/qpkg-test.json

raw
1 {
2 "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json",
3 "tests": [
4 {
5 "description": "Parse test for PURL type: qpkg",
6 "test_group": "base",
7 "test_type": "parse",
8 "input": "pkg:qpkg/blackberry/[email protected]",
9 "expected_output": {
10 "type": "qpkg",
11 "namespace": "blackberry",
12 "name": "com.qnx.sdp",
13 "version": "7.0.0.SGA201702151847",
14 "qualifiers": null,
15 "subpath": null
16 },
17 "expected_failure": false,
18 "expected_failure_reason": null
19 },
20 {
21 "description": "Roundtrip test for PURL type: qpkg",
22 "test_group": "base",
23 "test_type": "roundtrip",
24 "input": "pkg:qpkg/blackberry/[email protected]",
25 "expected_output": "pkg:qpkg/blackberry/[email protected]",
26 "expected_failure": false,
27 "expected_failure_reason": null
28 },
29 {
30 "description": "Build test for PURL type: qpkg",
31 "test_group": "base",
32 "test_type": "build",
33 "input": {
34 "type": "qpkg",
35 "namespace": "blackberry",
36 "name": "com.qnx.sdp",
37 "version": "7.0.0.SGA201702151847",
38 "qualifiers": null,
39 "subpath": null
40 },
41 "expected_output": "pkg:qpkg/blackberry/[email protected]",
42 "expected_failure": false,
43 "expected_failure_reason": null
44 },
45 {
46 "description": "Parse test for PURL type: qpkg",
47 "test_group": "base",
48 "test_type": "parse",
49 "input": "pkg:qpkg/blackberry/[email protected]",
50 "expected_output": {
51 "type": "qpkg",
52 "namespace": "blackberry",
53 "name": "com.qnx.qnx710.foo.bar.qux",
54 "version": "0.0.4.01449T202205040833L",
55 "qualifiers": null,
56 "subpath": null
57 },
58 "expected_failure": false,
59 "expected_failure_reason": null
60 },
61 {
62 "description": "Roundtrip test for PURL type: qpkg",
63 "test_group": "base",
64 "test_type": "roundtrip",
65 "input": "pkg:qpkg/blackberry/[email protected]",
66 "expected_output": "pkg:qpkg/blackberry/[email protected]",
67 "expected_failure": false,
68 "expected_failure_reason": null
69 },
70 {
71 "description": "Build test for PURL type: qpkg",
72 "test_group": "base",
73 "test_type": "build",
74 "input": {
75 "type": "qpkg",
76 "namespace": "blackberry",
77 "name": "com.qnx.qnx710.foo.bar.qux",
78 "version": "0.0.4.01449T202205040833L",
79 "qualifiers": null,
80 "subpath": null
81 },
82 "expected_output": "pkg:qpkg/blackberry/[email protected]",
83 "expected_failure": false,
84 "expected_failure_reason": null
85 }
86 ]
87 }