| 1 | { |
| 2 | "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json", |
| 3 | "tests": [ |
| 4 | { |
| 5 | "description": "valid conan purl. Roundtrip an input purl to canonical.", |
| 6 | "test_group": "advanced", |
| 7 | "test_type": "roundtrip", |
| 8 | "input": "pkg:conan/[email protected]", |
| 9 | "expected_output": "pkg:conan/[email protected]", |
| 10 | "expected_failure": false, |
| 11 | "expected_failure_reason": null |
| 12 | }, |
| 13 | { |
| 14 | "description": "valid conan purl", |
| 15 | "test_group": "base", |
| 16 | "test_type": "parse", |
| 17 | "input": "pkg:conan/[email protected]", |
| 18 | "expected_output": { |
| 19 | "type": "conan", |
| 20 | "namespace": null, |
| 21 | "name": "cctz", |
| 22 | "version": "2.3", |
| 23 | "qualifiers": null, |
| 24 | "subpath": null |
| 25 | }, |
| 26 | "expected_failure": false, |
| 27 | "expected_failure_reason": null |
| 28 | }, |
| 29 | { |
| 30 | "description": "valid conan purl. Roundtrip a canonical input to canonical output.", |
| 31 | "test_group": "base", |
| 32 | "test_type": "roundtrip", |
| 33 | "input": "pkg:conan/[email protected]", |
| 34 | "expected_output": "pkg:conan/[email protected]", |
| 35 | "expected_failure": false, |
| 36 | "expected_failure_reason": null |
| 37 | }, |
| 38 | { |
| 39 | "description": "valid conan purl", |
| 40 | "test_group": "base", |
| 41 | "test_type": "build", |
| 42 | "input": { |
| 43 | "type": "conan", |
| 44 | "namespace": null, |
| 45 | "name": "cctz", |
| 46 | "version": "2.3", |
| 47 | "qualifiers": null, |
| 48 | "subpath": null |
| 49 | }, |
| 50 | "expected_output": "pkg:conan/[email protected]", |
| 51 | "expected_failure": false, |
| 52 | "expected_failure_reason": null |
| 53 | }, |
| 54 | { |
| 55 | "description": "valid conan purl with namespace and qualifier channel. Roundtrip an input purl to canonical.", |
| 56 | "test_group": "advanced", |
| 57 | "test_type": "roundtrip", |
| 58 | "input": "pkg:conan/bincrafters/[email protected]?channel=stable", |
| 59 | "expected_output": "pkg:conan/bincrafters/[email protected]?channel=stable", |
| 60 | "expected_failure": false, |
| 61 | "expected_failure_reason": null |
| 62 | }, |
| 63 | { |
| 64 | "description": "valid conan purl with namespace and qualifier channel", |
| 65 | "test_group": "base", |
| 66 | "test_type": "parse", |
| 67 | "input": "pkg:conan/bincrafters/[email protected]?channel=stable", |
| 68 | "expected_output": { |
| 69 | "type": "conan", |
| 70 | "namespace": "bincrafters", |
| 71 | "name": "cctz", |
| 72 | "version": "2.3", |
| 73 | "qualifiers": { |
| 74 | "channel": "stable" |
| 75 | }, |
| 76 | "subpath": null |
| 77 | }, |
| 78 | "expected_failure": false, |
| 79 | "expected_failure_reason": null |
| 80 | }, |
| 81 | { |
| 82 | "description": "valid conan purl with namespace and qualifier channel. Roundtrip a canonical input to canonical output.", |
| 83 | "test_group": "base", |
| 84 | "test_type": "roundtrip", |
| 85 | "input": "pkg:conan/bincrafters/[email protected]?channel=stable", |
| 86 | "expected_output": "pkg:conan/bincrafters/[email protected]?channel=stable", |
| 87 | "expected_failure": false, |
| 88 | "expected_failure_reason": null |
| 89 | }, |
| 90 | { |
| 91 | "description": "valid conan purl with namespace and qualifier channel", |
| 92 | "test_group": "base", |
| 93 | "test_type": "build", |
| 94 | "input": { |
| 95 | "type": "conan", |
| 96 | "namespace": "bincrafters", |
| 97 | "name": "cctz", |
| 98 | "version": "2.3", |
| 99 | "qualifiers": { |
| 100 | "channel": "stable" |
| 101 | }, |
| 102 | "subpath": null |
| 103 | }, |
| 104 | "expected_output": "pkg:conan/bincrafters/[email protected]?channel=stable", |
| 105 | "expected_failure": false, |
| 106 | "expected_failure_reason": null |
| 107 | }, |
| 108 | { |
| 109 | "description": "Parse test for PURL type: conan", |
| 110 | "test_group": "base", |
| 111 | "test_type": "parse", |
| 112 | "input": "pkg:conan/[email protected]", |
| 113 | "expected_output": { |
| 114 | "type": "conan", |
| 115 | "namespace": null, |
| 116 | "name": "openssl", |
| 117 | "version": "3.0.3", |
| 118 | "qualifiers": null, |
| 119 | "subpath": null |
| 120 | }, |
| 121 | "expected_failure": false, |
| 122 | "expected_failure_reason": null |
| 123 | }, |
| 124 | { |
| 125 | "description": "Roundtrip test for PURL type: conan", |
| 126 | "test_group": "base", |
| 127 | "test_type": "roundtrip", |
| 128 | "input": "pkg:conan/[email protected]", |
| 129 | "expected_output": "pkg:conan/[email protected]", |
| 130 | "expected_failure": false, |
| 131 | "expected_failure_reason": null |
| 132 | }, |
| 133 | { |
| 134 | "description": "Build test for PURL type: conan", |
| 135 | "test_group": "base", |
| 136 | "test_type": "build", |
| 137 | "input": { |
| 138 | "type": "conan", |
| 139 | "namespace": null, |
| 140 | "name": "openssl", |
| 141 | "version": "3.0.3", |
| 142 | "qualifiers": null, |
| 143 | "subpath": null |
| 144 | }, |
| 145 | "expected_output": "pkg:conan/[email protected]", |
| 146 | "expected_failure": false, |
| 147 | "expected_failure_reason": null |
| 148 | }, |
| 149 | { |
| 150 | "description": "Parse test for PURL type: conan", |
| 151 | "test_group": "base", |
| 152 | "test_type": "parse", |
| 153 | "input": "pkg:conan/openssl.org/[email protected]?user=bincrafters&channel=stable", |
| 154 | "expected_output": { |
| 155 | "type": "conan", |
| 156 | "namespace": "openssl.org", |
| 157 | "name": "openssl", |
| 158 | "version": "3.0.3", |
| 159 | "qualifiers": { |
| 160 | "channel": "stable", |
| 161 | "user": "bincrafters" |
| 162 | }, |
| 163 | "subpath": null |
| 164 | }, |
| 165 | "expected_failure": false, |
| 166 | "expected_failure_reason": null |
| 167 | }, |
| 168 | { |
| 169 | "description": "Roundtrip test for PURL type: conan", |
| 170 | "test_group": "base", |
| 171 | "test_type": "roundtrip", |
| 172 | "input": "pkg:conan/openssl.org/[email protected]?user=bincrafters&channel=stable", |
| 173 | "expected_output": "pkg:conan/openssl.org/[email protected]?channel=stable&user=bincrafters", |
| 174 | "expected_failure": false, |
| 175 | "expected_failure_reason": null |
| 176 | }, |
| 177 | { |
| 178 | "description": "Build test for PURL type: conan", |
| 179 | "test_group": "base", |
| 180 | "test_type": "build", |
| 181 | "input": { |
| 182 | "type": "conan", |
| 183 | "namespace": "openssl.org", |
| 184 | "name": "openssl", |
| 185 | "version": "3.0.3", |
| 186 | "qualifiers": { |
| 187 | "channel": "stable", |
| 188 | "user": "bincrafters" |
| 189 | }, |
| 190 | "subpath": null |
| 191 | }, |
| 192 | "expected_output": "pkg:conan/openssl.org/[email protected]?channel=stable&user=bincrafters", |
| 193 | "expected_failure": false, |
| 194 | "expected_failure_reason": null |
| 195 | }, |
| 196 | { |
| 197 | "description": "Parse test for PURL type: conan", |
| 198 | "test_group": "base", |
| 199 | "test_type": "parse", |
| 200 | "input": "pkg:conan/openssl.org/[email protected]?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&shared=True&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c", |
| 201 | "expected_output": { |
| 202 | "type": "conan", |
| 203 | "namespace": "openssl.org", |
| 204 | "name": "openssl", |
| 205 | "version": "3.0.3", |
| 206 | "qualifiers": { |
| 207 | "arch": "x86_64", |
| 208 | "build_type": "Debug", |
| 209 | "compiler": "Visual Studio", |
| 210 | "compiler.runtime": "MDd", |
| 211 | "compiler.version": "16", |
| 212 | "os": "Windows", |
| 213 | "prev": "b429db8a0e324114c25ec387bfd8281f330d7c5c", |
| 214 | "rrev": "93a82349c31917d2d674d22065c7a9ef9f380c8e", |
| 215 | "shared": "True" |
| 216 | }, |
| 217 | "subpath": null |
| 218 | }, |
| 219 | "expected_failure": false, |
| 220 | "expected_failure_reason": null |
| 221 | }, |
| 222 | { |
| 223 | "description": "Roundtrip test for PURL type: conan", |
| 224 | "test_group": "base", |
| 225 | "test_type": "roundtrip", |
| 226 | "input": "pkg:conan/openssl.org/[email protected]?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&shared=True&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c", |
| 227 | "expected_output": "pkg:conan/openssl.org/[email protected]?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&shared=True", |
| 228 | "expected_failure": false, |
| 229 | "expected_failure_reason": null |
| 230 | }, |
| 231 | { |
| 232 | "description": "Build test for PURL type: conan", |
| 233 | "test_group": "base", |
| 234 | "test_type": "build", |
| 235 | "input": { |
| 236 | "type": "conan", |
| 237 | "namespace": "openssl.org", |
| 238 | "name": "openssl", |
| 239 | "version": "3.0.3", |
| 240 | "qualifiers": { |
| 241 | "arch": "x86_64", |
| 242 | "build_type": "Debug", |
| 243 | "compiler": "Visual Studio", |
| 244 | "compiler.runtime": "MDd", |
| 245 | "compiler.version": "16", |
| 246 | "os": "Windows", |
| 247 | "prev": "b429db8a0e324114c25ec387bfd8281f330d7c5c", |
| 248 | "rrev": "93a82349c31917d2d674d22065c7a9ef9f380c8e", |
| 249 | "shared": "True" |
| 250 | }, |
| 251 | "subpath": null |
| 252 | }, |
| 253 | "expected_output": "pkg:conan/openssl.org/[email protected]?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&shared=True", |
| 254 | "expected_failure": false, |
| 255 | "expected_failure_reason": null |
| 256 | } |
| 257 | ] |
| 258 | } |