Debian Codegraph @

t/purl/types/alpm-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: alpm",
6 "test_group": "base",
7 "test_type": "parse",
8 "input": "pkg:alpm/arch/[email protected]?arch=x86_64",
9 "expected_output": {
10 "type": "alpm",
11 "namespace": "arch",
12 "name": "pacman",
13 "version": "6.0.1-1",
14 "qualifiers": {
15 "arch": "x86_64"
16 },
17 "subpath": null
18 },
19 "expected_failure": false,
20 "expected_failure_reason": null
21 },
22 {
23 "description": "Roundtrip test for PURL type: alpm",
24 "test_group": "base",
25 "test_type": "roundtrip",
26 "input": "pkg:alpm/arch/[email protected]?arch=x86_64",
27 "expected_output": "pkg:alpm/arch/[email protected]?arch=x86_64",
28 "expected_failure": false,
29 "expected_failure_reason": null
30 },
31 {
32 "description": "Build test for PURL type: alpm",
33 "test_group": "base",
34 "test_type": "build",
35 "input": {
36 "type": "alpm",
37 "namespace": "arch",
38 "name": "pacman",
39 "version": "6.0.1-1",
40 "qualifiers": {
41 "arch": "x86_64"
42 },
43 "subpath": null
44 },
45 "expected_output": "pkg:alpm/arch/[email protected]?arch=x86_64",
46 "expected_failure": false,
47 "expected_failure_reason": null
48 },
49 {
50 "description": "Parse test for PURL type: alpm",
51 "test_group": "base",
52 "test_type": "parse",
53 "input": "pkg:alpm/arch/[email protected]?arch=any",
54 "expected_output": {
55 "type": "alpm",
56 "namespace": "arch",
57 "name": "python-pip",
58 "version": "21.0-1",
59 "qualifiers": {
60 "arch": "any"
61 },
62 "subpath": null
63 },
64 "expected_failure": false,
65 "expected_failure_reason": null
66 },
67 {
68 "description": "Roundtrip test for PURL type: alpm",
69 "test_group": "base",
70 "test_type": "roundtrip",
71 "input": "pkg:alpm/arch/[email protected]?arch=any",
72 "expected_output": "pkg:alpm/arch/[email protected]?arch=any",
73 "expected_failure": false,
74 "expected_failure_reason": null
75 },
76 {
77 "description": "Build test for PURL type: alpm",
78 "test_group": "base",
79 "test_type": "build",
80 "input": {
81 "type": "alpm",
82 "namespace": "arch",
83 "name": "python-pip",
84 "version": "21.0-1",
85 "qualifiers": {
86 "arch": "any"
87 },
88 "subpath": null
89 },
90 "expected_output": "pkg:alpm/arch/[email protected]?arch=any",
91 "expected_failure": false,
92 "expected_failure_reason": null
93 },
94 {
95 "description": "Parse test for PURL type: alpm",
96 "test_group": "base",
97 "test_type": "parse",
98 "input": "pkg:alpm/arch/containers-common@1:0.47.4-4?arch=x86_64",
99 "expected_output": {
100 "type": "alpm",
101 "namespace": "arch",
102 "name": "containers-common",
103 "version": "1:0.47.4-4",
104 "qualifiers": {
105 "arch": "x86_64"
106 },
107 "subpath": null
108 },
109 "expected_failure": false,
110 "expected_failure_reason": null
111 },
112 {
113 "description": "Roundtrip test for PURL type: alpm",
114 "test_group": "base",
115 "test_type": "roundtrip",
116 "input": "pkg:alpm/arch/containers-common@1:0.47.4-4?arch=x86_64",
117 "expected_output": "pkg:alpm/arch/containers-common@1:0.47.4-4?arch=x86_64",
118 "expected_failure": false,
119 "expected_failure_reason": null
120 },
121 {
122 "description": "Build test for PURL type: alpm",
123 "test_group": "base",
124 "test_type": "build",
125 "input": {
126 "type": "alpm",
127 "namespace": "arch",
128 "name": "containers-common",
129 "version": "1:0.47.4-4",
130 "qualifiers": {
131 "arch": "x86_64"
132 },
133 "subpath": null
134 },
135 "expected_output": "pkg:alpm/arch/containers-common@1:0.47.4-4?arch=x86_64",
136 "expected_failure": false,
137 "expected_failure_reason": null
138 }
139 ]
140 }