Debian Codegraph @

t/purl/types/conda-test.json

raw
1 {
2 "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json",
3 "tests": [
4 {
5 "description": "valid conda purl with qualifiers. Roundtrip an input purl to canonical.",
6 "test_group": "advanced",
7 "test_type": "roundtrip",
8 "input": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
9 "expected_output": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
10 "expected_failure": false,
11 "expected_failure_reason": null
12 },
13 {
14 "description": "valid conda purl with qualifiers",
15 "test_group": "base",
16 "test_type": "parse",
17 "input": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
18 "expected_output": {
19 "type": "conda",
20 "namespace": null,
21 "name": "absl-py",
22 "version": "0.4.1",
23 "qualifiers": {
24 "build": "py36h06a4308_0",
25 "channel": "main",
26 "subdir": "linux-64",
27 "type": "tar.bz2"
28 },
29 "subpath": null
30 },
31 "expected_failure": false,
32 "expected_failure_reason": null
33 },
34 {
35 "description": "valid conda purl with qualifiers. Roundtrip a canonical input to canonical output.",
36 "test_group": "base",
37 "test_type": "roundtrip",
38 "input": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
39 "expected_output": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
40 "expected_failure": false,
41 "expected_failure_reason": null
42 },
43 {
44 "description": "valid conda purl with qualifiers",
45 "test_group": "base",
46 "test_type": "build",
47 "input": {
48 "type": "conda",
49 "namespace": null,
50 "name": "absl-py",
51 "version": "0.4.1",
52 "qualifiers": {
53 "build": "py36h06a4308_0",
54 "channel": "main",
55 "subdir": "linux-64",
56 "type": "tar.bz2"
57 },
58 "subpath": null
59 },
60 "expected_output": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
61 "expected_failure": false,
62 "expected_failure_reason": null
63 },
64 {
65 "description": "Parse test for PURL type: conda",
66 "test_group": "base",
67 "test_type": "parse",
68 "input": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
69 "expected_output": {
70 "type": "conda",
71 "namespace": null,
72 "name": "absl-py",
73 "version": "0.4.1",
74 "qualifiers": {
75 "build": "py36h06a4308_0",
76 "channel": "main",
77 "subdir": "linux-64",
78 "type": "tar.bz2"
79 },
80 "subpath": null
81 },
82 "expected_failure": false,
83 "expected_failure_reason": null
84 },
85 {
86 "description": "Roundtrip test for PURL type: conda",
87 "test_group": "base",
88 "test_type": "roundtrip",
89 "input": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
90 "expected_output": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
91 "expected_failure": false,
92 "expected_failure_reason": null
93 },
94 {
95 "description": "Build test for PURL type: conda",
96 "test_group": "base",
97 "test_type": "build",
98 "input": {
99 "type": "conda",
100 "namespace": null,
101 "name": "absl-py",
102 "version": "0.4.1",
103 "qualifiers": {
104 "build": "py36h06a4308_0",
105 "channel": "main",
106 "subdir": "linux-64",
107 "type": "tar.bz2"
108 },
109 "subpath": null
110 },
111 "expected_output": "pkg:conda/[email protected]?build=py36h06a4308_0&channel=main&subdir=linux-64&type=tar.bz2",
112 "expected_failure": false,
113 "expected_failure_reason": null
114 }
115 ]
116 }