Debian Codegraph @

t/purl/types/luarocks-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: luarocks",
6 "test_group": "base",
7 "test_type": "parse",
8 "input": "pkg:luarocks/[email protected]",
9 "expected_output": {
10 "type": "luarocks",
11 "namespace": null,
12 "name": "luasocket",
13 "version": "3.1.0-1",
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: luarocks",
22 "test_group": "base",
23 "test_type": "roundtrip",
24 "input": "pkg:luarocks/[email protected]",
25 "expected_output": "pkg:luarocks/[email protected]",
26 "expected_failure": false,
27 "expected_failure_reason": null
28 },
29 {
30 "description": "Build test for PURL type: luarocks",
31 "test_group": "base",
32 "test_type": "build",
33 "input": {
34 "type": "luarocks",
35 "namespace": null,
36 "name": "luasocket",
37 "version": "3.1.0-1",
38 "qualifiers": null,
39 "subpath": null
40 },
41 "expected_output": "pkg:luarocks/[email protected]",
42 "expected_failure": false,
43 "expected_failure_reason": null
44 },
45 {
46 "description": "Parse test for PURL type: luarocks",
47 "test_group": "base",
48 "test_type": "parse",
49 "input": "pkg:luarocks/hisham/[email protected]",
50 "expected_output": {
51 "type": "luarocks",
52 "namespace": "hisham",
53 "name": "luafilesystem",
54 "version": "1.8.0-1",
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: luarocks",
63 "test_group": "base",
64 "test_type": "roundtrip",
65 "input": "pkg:luarocks/hisham/[email protected]",
66 "expected_output": "pkg:luarocks/hisham/[email protected]",
67 "expected_failure": false,
68 "expected_failure_reason": null
69 },
70 {
71 "description": "Build test for PURL type: luarocks",
72 "test_group": "base",
73 "test_type": "build",
74 "input": {
75 "type": "luarocks",
76 "namespace": "hisham",
77 "name": "luafilesystem",
78 "version": "1.8.0-1",
79 "qualifiers": null,
80 "subpath": null
81 },
82 "expected_output": "pkg:luarocks/hisham/[email protected]",
83 "expected_failure": false,
84 "expected_failure_reason": null
85 },
86 {
87 "description": "Parse test for PURL type: luarocks",
88 "test_group": "base",
89 "test_type": "parse",
90 "input": "pkg:luarocks/username/[email protected]?repository_url=https://example.com/private_rocks_server/",
91 "expected_output": {
92 "type": "luarocks",
93 "namespace": "username",
94 "name": "packagename",
95 "version": "0.1.0-1",
96 "qualifiers": {
97 "repository_url": "https://example.com/private_rocks_server/"
98 },
99 "subpath": null
100 },
101 "expected_failure": false,
102 "expected_failure_reason": null
103 },
104 {
105 "description": "Roundtrip test for PURL type: luarocks",
106 "test_group": "base",
107 "test_type": "roundtrip",
108 "input": "pkg:luarocks/username/[email protected]?repository_url=https://example.com/private_rocks_server/",
109 "expected_output": "pkg:luarocks/username/[email protected]?repository_url=https:%2F%2Fexample.com%2Fprivate_rocks_server%2F",
110 "expected_failure": false,
111 "expected_failure_reason": null
112 },
113 {
114 "description": "Build test for PURL type: luarocks",
115 "test_group": "base",
116 "test_type": "build",
117 "input": {
118 "type": "luarocks",
119 "namespace": "username",
120 "name": "packagename",
121 "version": "0.1.0-1",
122 "qualifiers": {
123 "repository_url": "https://example.com/private_rocks_server/"
124 },
125 "subpath": null
126 },
127 "expected_output": "pkg:luarocks/username/[email protected]?repository_url=https:%2F%2Fexample.com%2Fprivate_rocks_server%2F",
128 "expected_failure": false,
129 "expected_failure_reason": null
130 }
131 ]
132 }