| 1 | { |
| 2 | "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json", |
| 3 | "tests": [ |
| 4 | { |
| 5 | "description": "valid maven purl. Roundtrip an input purl to canonical.", |
| 6 | "test_group": "advanced", |
| 7 | "test_type": "roundtrip", |
| 8 | "input": "pkg:maven/org.apache.commons/[email protected]", |
| 9 | "expected_output": "pkg:maven/org.apache.commons/[email protected]", |
| 10 | "expected_failure": false, |
| 11 | "expected_failure_reason": null |
| 12 | }, |
| 13 | { |
| 14 | "description": "valid maven purl", |
| 15 | "test_group": "base", |
| 16 | "test_type": "parse", |
| 17 | "input": "pkg:maven/org.apache.commons/[email protected]", |
| 18 | "expected_output": { |
| 19 | "type": "maven", |
| 20 | "namespace": "org.apache.commons", |
| 21 | "name": "io", |
| 22 | "version": "1.3.4", |
| 23 | "qualifiers": null, |
| 24 | "subpath": null |
| 25 | }, |
| 26 | "expected_failure": false, |
| 27 | "expected_failure_reason": null |
| 28 | }, |
| 29 | { |
| 30 | "description": "valid maven purl. Roundtrip a canonical input to canonical output.", |
| 31 | "test_group": "base", |
| 32 | "test_type": "roundtrip", |
| 33 | "input": "pkg:maven/org.apache.commons/[email protected]", |
| 34 | "expected_output": "pkg:maven/org.apache.commons/[email protected]", |
| 35 | "expected_failure": false, |
| 36 | "expected_failure_reason": null |
| 37 | }, |
| 38 | { |
| 39 | "description": "valid maven purl", |
| 40 | "test_group": "base", |
| 41 | "test_type": "build", |
| 42 | "input": { |
| 43 | "type": "maven", |
| 44 | "namespace": "org.apache.commons", |
| 45 | "name": "io", |
| 46 | "version": "1.3.4", |
| 47 | "qualifiers": null, |
| 48 | "subpath": null |
| 49 | }, |
| 50 | "expected_output": "pkg:maven/org.apache.commons/[email protected]", |
| 51 | "expected_failure": false, |
| 52 | "expected_failure_reason": null |
| 53 | }, |
| 54 | { |
| 55 | "description": "basic valid maven purl without version. Roundtrip an input purl to canonical.", |
| 56 | "test_group": "advanced", |
| 57 | "test_type": "roundtrip", |
| 58 | "input": "pkg:maven/org.apache.commons/io", |
| 59 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 60 | "expected_failure": false, |
| 61 | "expected_failure_reason": null |
| 62 | }, |
| 63 | { |
| 64 | "description": "basic valid maven purl without version", |
| 65 | "test_group": "base", |
| 66 | "test_type": "parse", |
| 67 | "input": "pkg:maven/org.apache.commons/io", |
| 68 | "expected_output": { |
| 69 | "type": "maven", |
| 70 | "namespace": "org.apache.commons", |
| 71 | "name": "io", |
| 72 | "version": null, |
| 73 | "qualifiers": null, |
| 74 | "subpath": null |
| 75 | }, |
| 76 | "expected_failure": false, |
| 77 | "expected_failure_reason": null |
| 78 | }, |
| 79 | { |
| 80 | "description": "basic valid maven purl without version. Roundtrip a canonical input to canonical output.", |
| 81 | "test_group": "base", |
| 82 | "test_type": "roundtrip", |
| 83 | "input": "pkg:maven/org.apache.commons/io", |
| 84 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 85 | "expected_failure": false, |
| 86 | "expected_failure_reason": null |
| 87 | }, |
| 88 | { |
| 89 | "description": "basic valid maven purl without version", |
| 90 | "test_group": "base", |
| 91 | "test_type": "build", |
| 92 | "input": { |
| 93 | "type": "maven", |
| 94 | "namespace": "org.apache.commons", |
| 95 | "name": "io", |
| 96 | "version": null, |
| 97 | "qualifiers": null, |
| 98 | "subpath": null |
| 99 | }, |
| 100 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 101 | "expected_failure": false, |
| 102 | "expected_failure_reason": null |
| 103 | }, |
| 104 | { |
| 105 | "description": "maven often uses qualifiers. Roundtrip an input purl to canonical using mixedcase type", |
| 106 | "test_group": "advanced", |
| 107 | "test_type": "roundtrip", |
| 108 | "input": "pkg:Maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repositorY_url=https://repo.spring.io/release", |
| 109 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=https:%2F%2Frepo.spring.io%2Frelease", |
| 110 | "expected_failure": false, |
| 111 | "expected_failure_reason": null |
| 112 | }, |
| 113 | { |
| 114 | "description": "maven often uses qualifiers here mixedcase type", |
| 115 | "test_group": "advanced", |
| 116 | "test_type": "parse", |
| 117 | "input": "pkg:Maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repositorY_url=https://repo.spring.io/release", |
| 118 | "expected_output": { |
| 119 | "type": "maven", |
| 120 | "namespace": "org.apache.xmlgraphics", |
| 121 | "name": "batik-anim", |
| 122 | "version": "1.9.1", |
| 123 | "qualifiers": { |
| 124 | "classifier": "sources", |
| 125 | "repository_url": "https://repo.spring.io/release" |
| 126 | }, |
| 127 | "subpath": null |
| 128 | }, |
| 129 | "expected_failure": false, |
| 130 | "expected_failure_reason": null |
| 131 | }, |
| 132 | { |
| 133 | "description": "maven often uses qualifiers. Roundtrip a canonical input to canonical output.", |
| 134 | "test_group": "base", |
| 135 | "test_type": "roundtrip", |
| 136 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=repo.spring.io/release", |
| 137 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=repo.spring.io%2Frelease", |
| 138 | "expected_failure": false, |
| 139 | "expected_failure_reason": null |
| 140 | }, |
| 141 | { |
| 142 | "description": "maven often uses qualifiers", |
| 143 | "test_group": "base", |
| 144 | "test_type": "build", |
| 145 | "input": { |
| 146 | "type": "maven", |
| 147 | "namespace": "org.apache.xmlgraphics", |
| 148 | "name": "batik-anim", |
| 149 | "version": "1.9.1", |
| 150 | "qualifiers": { |
| 151 | "classifier": "sources", |
| 152 | "repository_url": "repo.spring.io/release" |
| 153 | }, |
| 154 | "subpath": null |
| 155 | }, |
| 156 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=repo.spring.io%2Frelease", |
| 157 | "expected_failure": false, |
| 158 | "expected_failure_reason": null |
| 159 | }, |
| 160 | { |
| 161 | "description": "maven pom reference. Roundtrip an input purl to canonical.", |
| 162 | "test_group": "advanced", |
| 163 | "test_type": "roundtrip", |
| 164 | "input": "pkg:Maven/org.apache.xmlgraphics/[email protected]?type=pom&repositorY_url=repo.spring.io/release", |
| 165 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?repository_url=repo.spring.io%2Frelease&type=pom", |
| 166 | "expected_failure": false, |
| 167 | "expected_failure_reason": null |
| 168 | }, |
| 169 | { |
| 170 | "description": "maven pom reference", |
| 171 | "test_group": "base", |
| 172 | "test_type": "parse", |
| 173 | "input": "pkg:Maven/org.apache.xmlgraphics/[email protected]?type=pom&repositorY_url=repo.spring.io/release", |
| 174 | "expected_output": { |
| 175 | "type": "maven", |
| 176 | "namespace": "org.apache.xmlgraphics", |
| 177 | "name": "batik-anim", |
| 178 | "version": "1.9.1", |
| 179 | "qualifiers": { |
| 180 | "type": "pom", |
| 181 | "repository_url": "repo.spring.io/release" |
| 182 | }, |
| 183 | "subpath": null |
| 184 | }, |
| 185 | "expected_failure": false, |
| 186 | "expected_failure_reason": null |
| 187 | }, |
| 188 | { |
| 189 | "description": "maven pom reference. Roundtrip a canonical input to canonical output.", |
| 190 | "test_group": "base", |
| 191 | "test_type": "roundtrip", |
| 192 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=war&repository_url=https://repo.spring.io/release", |
| 193 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?repository_url=https:%2F%2Frepo.spring.io%2Frelease&type=war", |
| 194 | "expected_failure": false, |
| 195 | "expected_failure_reason": null |
| 196 | }, |
| 197 | { |
| 198 | "description": "maven pom reference", |
| 199 | "test_group": "base", |
| 200 | "test_type": "build", |
| 201 | "input": { |
| 202 | "type": "maven", |
| 203 | "namespace": "org.apache.xmlgraphics", |
| 204 | "name": "batik-anim", |
| 205 | "version": "1.9.1", |
| 206 | "qualifiers": { |
| 207 | "classifier": "foo", |
| 208 | "repository_url": "repo.spring.io/release" |
| 209 | }, |
| 210 | "subpath": null |
| 211 | }, |
| 212 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=foo&repository_url=repo.spring.io%2Frelease", |
| 213 | "expected_failure": false, |
| 214 | "expected_failure_reason": null |
| 215 | }, |
| 216 | { |
| 217 | "description": "maven can come with a type qualifier. Roundtrip an input purl to canonical.", |
| 218 | "test_group": "advanced", |
| 219 | "test_type": "roundtrip", |
| 220 | "input": "pkg:Maven/net.sf.jacob-project/[email protected]?classifier=x86&type=dll", |
| 221 | "expected_output": "pkg:maven/net.sf.jacob-project/[email protected]?classifier=x86&type=dll", |
| 222 | "expected_failure": false, |
| 223 | "expected_failure_reason": null |
| 224 | }, |
| 225 | { |
| 226 | "description": "maven can come with a type qualifier", |
| 227 | "test_group": "base", |
| 228 | "test_type": "parse", |
| 229 | "input": "pkg:Maven/net.sf.jacob-project/[email protected]?classifier=x86&type=dll", |
| 230 | "expected_output": { |
| 231 | "type": "maven", |
| 232 | "namespace": "net.sf.jacob-project", |
| 233 | "name": "jacob", |
| 234 | "version": "1.14.3", |
| 235 | "qualifiers": { |
| 236 | "classifier": "x86", |
| 237 | "type": "dll" |
| 238 | }, |
| 239 | "subpath": null |
| 240 | }, |
| 241 | "expected_failure": false, |
| 242 | "expected_failure_reason": null |
| 243 | }, |
| 244 | { |
| 245 | "description": "maven can come with a type qualifier. Roundtrip a canonical input to canonical output.", |
| 246 | "test_group": "base", |
| 247 | "test_type": "roundtrip", |
| 248 | "input": "pkg:maven/net.sf.jacob-project/[email protected]?classifier=x86&type=dll", |
| 249 | "expected_output": "pkg:maven/net.sf.jacob-project/[email protected]?classifier=x86&type=dll", |
| 250 | "expected_failure": false, |
| 251 | "expected_failure_reason": null |
| 252 | }, |
| 253 | { |
| 254 | "description": "maven can come with a type qualifier", |
| 255 | "test_group": "base", |
| 256 | "test_type": "build", |
| 257 | "input": { |
| 258 | "type": "maven", |
| 259 | "namespace": "net.sf.jacob-project", |
| 260 | "name": "jacob", |
| 261 | "version": "1.14.3", |
| 262 | "qualifiers": { |
| 263 | "classifier": "x86", |
| 264 | "type": "dll" |
| 265 | }, |
| 266 | "subpath": null |
| 267 | }, |
| 268 | "expected_output": "pkg:maven/net.sf.jacob-project/[email protected]?classifier=x86&type=dll", |
| 269 | "expected_failure": false, |
| 270 | "expected_failure_reason": null |
| 271 | }, |
| 272 | { |
| 273 | "description": "slash / after type is not significant. Roundtrip an input purl to canonical.", |
| 274 | "test_group": "advanced", |
| 275 | "test_type": "roundtrip", |
| 276 | "input": "pkg:/maven/org.apache.commons/io", |
| 277 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 278 | "expected_failure": false, |
| 279 | "expected_failure_reason": null |
| 280 | }, |
| 281 | { |
| 282 | "description": "slash / after type is not significant", |
| 283 | "test_group": "base", |
| 284 | "test_type": "parse", |
| 285 | "input": "pkg:/maven/org.apache.commons/io", |
| 286 | "expected_output": { |
| 287 | "type": "maven", |
| 288 | "namespace": "org.apache.commons", |
| 289 | "name": "io", |
| 290 | "version": null, |
| 291 | "qualifiers": null, |
| 292 | "subpath": null |
| 293 | }, |
| 294 | "expected_failure": false, |
| 295 | "expected_failure_reason": null |
| 296 | }, |
| 297 | { |
| 298 | "description": "slash / after type is not significant. Roundtrip a canonical input to canonical output.", |
| 299 | "test_group": "base", |
| 300 | "test_type": "roundtrip", |
| 301 | "input": "pkg:maven/org.apache.commons/io", |
| 302 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 303 | "expected_failure": false, |
| 304 | "expected_failure_reason": null |
| 305 | }, |
| 306 | { |
| 307 | "description": "slash / after type is not significant", |
| 308 | "test_group": "base", |
| 309 | "test_type": "build", |
| 310 | "input": { |
| 311 | "type": "maven", |
| 312 | "namespace": "org.apache.commons", |
| 313 | "name": "io", |
| 314 | "version": null, |
| 315 | "qualifiers": null, |
| 316 | "subpath": null |
| 317 | }, |
| 318 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 319 | "expected_failure": false, |
| 320 | "expected_failure_reason": null |
| 321 | }, |
| 322 | { |
| 323 | "description": "double slash // after type is not significant. Roundtrip an input purl to canonical.", |
| 324 | "test_group": "advanced", |
| 325 | "test_type": "roundtrip", |
| 326 | "input": "pkg://maven/org.apache.commons/io", |
| 327 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 328 | "expected_failure": false, |
| 329 | "expected_failure_reason": null |
| 330 | }, |
| 331 | { |
| 332 | "description": "double slash // after type is not significant", |
| 333 | "test_group": "base", |
| 334 | "test_type": "parse", |
| 335 | "input": "pkg://maven/org.apache.commons/io", |
| 336 | "expected_output": { |
| 337 | "type": "maven", |
| 338 | "namespace": "org.apache.commons", |
| 339 | "name": "io", |
| 340 | "version": null, |
| 341 | "qualifiers": null, |
| 342 | "subpath": null |
| 343 | }, |
| 344 | "expected_failure": false, |
| 345 | "expected_failure_reason": null |
| 346 | }, |
| 347 | { |
| 348 | "description": "double slash // after type is not significant. Roundtrip a canonical input to canonical output.", |
| 349 | "test_group": "base", |
| 350 | "test_type": "roundtrip", |
| 351 | "input": "pkg:maven/org.apache.commons/io", |
| 352 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 353 | "expected_failure": false, |
| 354 | "expected_failure_reason": null |
| 355 | }, |
| 356 | { |
| 357 | "description": "double slash // after type is not significant", |
| 358 | "test_group": "base", |
| 359 | "test_type": "build", |
| 360 | "input": { |
| 361 | "type": "maven", |
| 362 | "namespace": "org.apache.commons", |
| 363 | "name": "io", |
| 364 | "version": null, |
| 365 | "qualifiers": null, |
| 366 | "subpath": null |
| 367 | }, |
| 368 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 369 | "expected_failure": false, |
| 370 | "expected_failure_reason": null |
| 371 | }, |
| 372 | { |
| 373 | "description": "slash /// after type is not significant. Roundtrip an input purl to canonical.", |
| 374 | "test_group": "advanced", |
| 375 | "test_type": "roundtrip", |
| 376 | "input": "pkg:///maven/org.apache.commons/io", |
| 377 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 378 | "expected_failure": false, |
| 379 | "expected_failure_reason": null |
| 380 | }, |
| 381 | { |
| 382 | "description": "slash /// after type is not significant", |
| 383 | "test_group": "base", |
| 384 | "test_type": "parse", |
| 385 | "input": "pkg:///maven/org.apache.commons/io", |
| 386 | "expected_output": { |
| 387 | "type": "maven", |
| 388 | "namespace": "org.apache.commons", |
| 389 | "name": "io", |
| 390 | "version": null, |
| 391 | "qualifiers": null, |
| 392 | "subpath": null |
| 393 | }, |
| 394 | "expected_failure": false, |
| 395 | "expected_failure_reason": null |
| 396 | }, |
| 397 | { |
| 398 | "description": "slash /// after type is not significant. Roundtrip a canonical input to canonical output.", |
| 399 | "test_group": "base", |
| 400 | "test_type": "roundtrip", |
| 401 | "input": "pkg:maven/org.apache.commons/io", |
| 402 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 403 | "expected_failure": false, |
| 404 | "expected_failure_reason": null |
| 405 | }, |
| 406 | { |
| 407 | "description": "slash /// after type is not significant", |
| 408 | "test_group": "base", |
| 409 | "test_type": "build", |
| 410 | "input": { |
| 411 | "type": "maven", |
| 412 | "namespace": "org.apache.commons", |
| 413 | "name": "io", |
| 414 | "version": null, |
| 415 | "qualifiers": null, |
| 416 | "subpath": null |
| 417 | }, |
| 418 | "expected_output": "pkg:maven/org.apache.commons/io", |
| 419 | "expected_failure": false, |
| 420 | "expected_failure_reason": null |
| 421 | }, |
| 422 | { |
| 423 | "description": "valid maven purl with case sensitive namespace and name. Roundtrip an input purl to canonical.", |
| 424 | "test_group": "advanced", |
| 425 | "test_type": "roundtrip", |
| 426 | "input": "pkg:maven/HTTPClient/[email protected]", |
| 427 | "expected_output": "pkg:maven/HTTPClient/[email protected]", |
| 428 | "expected_failure": false, |
| 429 | "expected_failure_reason": null |
| 430 | }, |
| 431 | { |
| 432 | "description": "valid maven purl with case sensitive namespace and name", |
| 433 | "test_group": "base", |
| 434 | "test_type": "parse", |
| 435 | "input": "pkg:maven/HTTPClient/[email protected]", |
| 436 | "expected_output": { |
| 437 | "type": "maven", |
| 438 | "namespace": "HTTPClient", |
| 439 | "name": "HTTPClient", |
| 440 | "version": "0.3-3", |
| 441 | "qualifiers": null, |
| 442 | "subpath": null |
| 443 | }, |
| 444 | "expected_failure": false, |
| 445 | "expected_failure_reason": null |
| 446 | }, |
| 447 | { |
| 448 | "description": "valid maven purl with case sensitive namespace and name. Roundtrip a canonical input to canonical output.", |
| 449 | "test_group": "base", |
| 450 | "test_type": "roundtrip", |
| 451 | "input": "pkg:maven/HTTPClient/[email protected]", |
| 452 | "expected_output": "pkg:maven/HTTPClient/[email protected]", |
| 453 | "expected_failure": false, |
| 454 | "expected_failure_reason": null |
| 455 | }, |
| 456 | { |
| 457 | "description": "valid maven purl with case sensitive namespace and name", |
| 458 | "test_group": "base", |
| 459 | "test_type": "build", |
| 460 | "input": { |
| 461 | "type": "maven", |
| 462 | "namespace": "HTTPClient", |
| 463 | "name": "HTTPClient", |
| 464 | "version": "0.3-3", |
| 465 | "qualifiers": null, |
| 466 | "subpath": null |
| 467 | }, |
| 468 | "expected_output": "pkg:maven/HTTPClient/[email protected]", |
| 469 | "expected_failure": false, |
| 470 | "expected_failure_reason": null |
| 471 | }, |
| 472 | { |
| 473 | "description": "valid maven purl containing a space in the version and qualifier. Roundtrip an input purl to canonical.", |
| 474 | "test_group": "advanced", |
| 475 | "test_type": "roundtrip", |
| 476 | "input": "pkg:maven/mygroup/[email protected]%20Final?mykey=my%20value", |
| 477 | "expected_output": "pkg:maven/mygroup/[email protected]%20Final?mykey=my%20value", |
| 478 | "expected_failure": false, |
| 479 | "expected_failure_reason": null |
| 480 | }, |
| 481 | { |
| 482 | "description": "valid maven purl containing a space in the version and qualifier", |
| 483 | "test_group": "base", |
| 484 | "test_type": "parse", |
| 485 | "input": "pkg:maven/mygroup/[email protected]%20Final?mykey=my%20value", |
| 486 | "expected_output": { |
| 487 | "type": "maven", |
| 488 | "namespace": "mygroup", |
| 489 | "name": "myartifact", |
| 490 | "version": "1.0.0 Final", |
| 491 | "qualifiers": { |
| 492 | "mykey": "my value" |
| 493 | }, |
| 494 | "subpath": null |
| 495 | }, |
| 496 | "expected_failure": false, |
| 497 | "expected_failure_reason": null |
| 498 | }, |
| 499 | { |
| 500 | "description": "valid maven purl containing a space in the version and qualifier. Roundtrip a canonical input to canonical output.", |
| 501 | "test_group": "base", |
| 502 | "test_type": "roundtrip", |
| 503 | "input": "pkg:maven/mygroup/[email protected]%20Final?mykey=my%20value", |
| 504 | "expected_output": "pkg:maven/mygroup/[email protected]%20Final?mykey=my%20value", |
| 505 | "expected_failure": false, |
| 506 | "expected_failure_reason": null |
| 507 | }, |
| 508 | { |
| 509 | "description": "valid maven purl containing a space in the version and qualifier", |
| 510 | "test_group": "base", |
| 511 | "test_type": "build", |
| 512 | "input": { |
| 513 | "type": "maven", |
| 514 | "namespace": "mygroup", |
| 515 | "name": "myartifact", |
| 516 | "version": "1.0.0 Final", |
| 517 | "qualifiers": { |
| 518 | "mykey": "my value" |
| 519 | }, |
| 520 | "subpath": null |
| 521 | }, |
| 522 | "expected_output": "pkg:maven/mygroup/[email protected]%20Final?mykey=my%20value", |
| 523 | "expected_failure": false, |
| 524 | "expected_failure_reason": null |
| 525 | }, |
| 526 | { |
| 527 | "description": "Parse test for PURL type: maven", |
| 528 | "test_group": "base", |
| 529 | "test_type": "parse", |
| 530 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]", |
| 531 | "expected_output": { |
| 532 | "type": "maven", |
| 533 | "namespace": "org.apache.xmlgraphics", |
| 534 | "name": "batik-anim", |
| 535 | "version": "1.9.1", |
| 536 | "qualifiers": null, |
| 537 | "subpath": null |
| 538 | }, |
| 539 | "expected_failure": false, |
| 540 | "expected_failure_reason": null |
| 541 | }, |
| 542 | { |
| 543 | "description": "Roundtrip test for PURL type: maven", |
| 544 | "test_group": "base", |
| 545 | "test_type": "roundtrip", |
| 546 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]", |
| 547 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]", |
| 548 | "expected_failure": false, |
| 549 | "expected_failure_reason": null |
| 550 | }, |
| 551 | { |
| 552 | "description": "Build test for PURL type: maven", |
| 553 | "test_group": "base", |
| 554 | "test_type": "build", |
| 555 | "input": { |
| 556 | "type": "maven", |
| 557 | "namespace": "org.apache.xmlgraphics", |
| 558 | "name": "batik-anim", |
| 559 | "version": "1.9.1", |
| 560 | "qualifiers": null, |
| 561 | "subpath": null |
| 562 | }, |
| 563 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]", |
| 564 | "expected_failure": false, |
| 565 | "expected_failure_reason": null |
| 566 | }, |
| 567 | { |
| 568 | "description": "Parse test for PURL type: maven", |
| 569 | "test_group": "base", |
| 570 | "test_type": "parse", |
| 571 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=pom", |
| 572 | "expected_output": { |
| 573 | "type": "maven", |
| 574 | "namespace": "org.apache.xmlgraphics", |
| 575 | "name": "batik-anim", |
| 576 | "version": "1.9.1", |
| 577 | "qualifiers": { |
| 578 | "type": "pom" |
| 579 | }, |
| 580 | "subpath": null |
| 581 | }, |
| 582 | "expected_failure": false, |
| 583 | "expected_failure_reason": null |
| 584 | }, |
| 585 | { |
| 586 | "description": "Roundtrip test for PURL type: maven", |
| 587 | "test_group": "base", |
| 588 | "test_type": "roundtrip", |
| 589 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=pom", |
| 590 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=pom", |
| 591 | "expected_failure": false, |
| 592 | "expected_failure_reason": null |
| 593 | }, |
| 594 | { |
| 595 | "description": "Build test for PURL type: maven", |
| 596 | "test_group": "base", |
| 597 | "test_type": "build", |
| 598 | "input": { |
| 599 | "type": "maven", |
| 600 | "namespace": "org.apache.xmlgraphics", |
| 601 | "name": "batik-anim", |
| 602 | "version": "1.9.1", |
| 603 | "qualifiers": { |
| 604 | "type": "pom" |
| 605 | }, |
| 606 | "subpath": null |
| 607 | }, |
| 608 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=pom", |
| 609 | "expected_failure": false, |
| 610 | "expected_failure_reason": null |
| 611 | }, |
| 612 | { |
| 613 | "description": "Parse test for PURL type: maven", |
| 614 | "test_group": "base", |
| 615 | "test_type": "parse", |
| 616 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources", |
| 617 | "expected_output": { |
| 618 | "type": "maven", |
| 619 | "namespace": "org.apache.xmlgraphics", |
| 620 | "name": "batik-anim", |
| 621 | "version": "1.9.1", |
| 622 | "qualifiers": { |
| 623 | "classifier": "sources" |
| 624 | }, |
| 625 | "subpath": null |
| 626 | }, |
| 627 | "expected_failure": false, |
| 628 | "expected_failure_reason": null |
| 629 | }, |
| 630 | { |
| 631 | "description": "Roundtrip test for PURL type: maven", |
| 632 | "test_group": "base", |
| 633 | "test_type": "roundtrip", |
| 634 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources", |
| 635 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources", |
| 636 | "expected_failure": false, |
| 637 | "expected_failure_reason": null |
| 638 | }, |
| 639 | { |
| 640 | "description": "Build test for PURL type: maven", |
| 641 | "test_group": "base", |
| 642 | "test_type": "build", |
| 643 | "input": { |
| 644 | "type": "maven", |
| 645 | "namespace": "org.apache.xmlgraphics", |
| 646 | "name": "batik-anim", |
| 647 | "version": "1.9.1", |
| 648 | "qualifiers": { |
| 649 | "classifier": "sources" |
| 650 | }, |
| 651 | "subpath": null |
| 652 | }, |
| 653 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources", |
| 654 | "expected_failure": false, |
| 655 | "expected_failure_reason": null |
| 656 | }, |
| 657 | { |
| 658 | "description": "Parse test for PURL type: maven", |
| 659 | "test_group": "base", |
| 660 | "test_type": "parse", |
| 661 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=zip&classifier=dist", |
| 662 | "expected_output": { |
| 663 | "type": "maven", |
| 664 | "namespace": "org.apache.xmlgraphics", |
| 665 | "name": "batik-anim", |
| 666 | "version": "1.9.1", |
| 667 | "qualifiers": { |
| 668 | "classifier": "dist", |
| 669 | "type": "zip" |
| 670 | }, |
| 671 | "subpath": null |
| 672 | }, |
| 673 | "expected_failure": false, |
| 674 | "expected_failure_reason": null |
| 675 | }, |
| 676 | { |
| 677 | "description": "Roundtrip test for PURL type: maven", |
| 678 | "test_group": "base", |
| 679 | "test_type": "roundtrip", |
| 680 | "input": "pkg:maven/org.apache.xmlgraphics/[email protected]?type=zip&classifier=dist", |
| 681 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=dist&type=zip", |
| 682 | "expected_failure": false, |
| 683 | "expected_failure_reason": null |
| 684 | }, |
| 685 | { |
| 686 | "description": "Build test for PURL type: maven", |
| 687 | "test_group": "base", |
| 688 | "test_type": "build", |
| 689 | "input": { |
| 690 | "type": "maven", |
| 691 | "namespace": "org.apache.xmlgraphics", |
| 692 | "name": "batik-anim", |
| 693 | "version": "1.9.1", |
| 694 | "qualifiers": { |
| 695 | "classifier": "dist", |
| 696 | "type": "zip" |
| 697 | }, |
| 698 | "subpath": null |
| 699 | }, |
| 700 | "expected_output": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=dist&type=zip", |
| 701 | "expected_failure": false, |
| 702 | "expected_failure_reason": null |
| 703 | }, |
| 704 | { |
| 705 | "description": "Parse test for PURL type: maven", |
| 706 | "test_group": "base", |
| 707 | "test_type": "parse", |
| 708 | "input": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x86&type=dll", |
| 709 | "expected_output": { |
| 710 | "type": "maven", |
| 711 | "namespace": "net.sf.jacob-projec", |
| 712 | "name": "jacob", |
| 713 | "version": "1.14.3", |
| 714 | "qualifiers": { |
| 715 | "classifier": "x86", |
| 716 | "type": "dll" |
| 717 | }, |
| 718 | "subpath": null |
| 719 | }, |
| 720 | "expected_failure": false, |
| 721 | "expected_failure_reason": null |
| 722 | }, |
| 723 | { |
| 724 | "description": "Roundtrip test for PURL type: maven", |
| 725 | "test_group": "base", |
| 726 | "test_type": "roundtrip", |
| 727 | "input": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x86&type=dll", |
| 728 | "expected_output": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x86&type=dll", |
| 729 | "expected_failure": false, |
| 730 | "expected_failure_reason": null |
| 731 | }, |
| 732 | { |
| 733 | "description": "Build test for PURL type: maven", |
| 734 | "test_group": "base", |
| 735 | "test_type": "build", |
| 736 | "input": { |
| 737 | "type": "maven", |
| 738 | "namespace": "net.sf.jacob-projec", |
| 739 | "name": "jacob", |
| 740 | "version": "1.14.3", |
| 741 | "qualifiers": { |
| 742 | "classifier": "x86", |
| 743 | "type": "dll" |
| 744 | }, |
| 745 | "subpath": null |
| 746 | }, |
| 747 | "expected_output": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x86&type=dll", |
| 748 | "expected_failure": false, |
| 749 | "expected_failure_reason": null |
| 750 | }, |
| 751 | { |
| 752 | "description": "Parse test for PURL type: maven", |
| 753 | "test_group": "base", |
| 754 | "test_type": "parse", |
| 755 | "input": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x64&type=dll", |
| 756 | "expected_output": { |
| 757 | "type": "maven", |
| 758 | "namespace": "net.sf.jacob-projec", |
| 759 | "name": "jacob", |
| 760 | "version": "1.14.3", |
| 761 | "qualifiers": { |
| 762 | "classifier": "x64", |
| 763 | "type": "dll" |
| 764 | }, |
| 765 | "subpath": null |
| 766 | }, |
| 767 | "expected_failure": false, |
| 768 | "expected_failure_reason": null |
| 769 | }, |
| 770 | { |
| 771 | "description": "Roundtrip test for PURL type: maven", |
| 772 | "test_group": "base", |
| 773 | "test_type": "roundtrip", |
| 774 | "input": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x64&type=dll", |
| 775 | "expected_output": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x64&type=dll", |
| 776 | "expected_failure": false, |
| 777 | "expected_failure_reason": null |
| 778 | }, |
| 779 | { |
| 780 | "description": "Build test for PURL type: maven", |
| 781 | "test_group": "base", |
| 782 | "test_type": "build", |
| 783 | "input": { |
| 784 | "type": "maven", |
| 785 | "namespace": "net.sf.jacob-projec", |
| 786 | "name": "jacob", |
| 787 | "version": "1.14.3", |
| 788 | "qualifiers": { |
| 789 | "classifier": "x64", |
| 790 | "type": "dll" |
| 791 | }, |
| 792 | "subpath": null |
| 793 | }, |
| 794 | "expected_output": "pkg:maven/net.sf.jacob-projec/[email protected]?classifier=x64&type=dll", |
| 795 | "expected_failure": false, |
| 796 | "expected_failure_reason": null |
| 797 | }, |
| 798 | { |
| 799 | "description": "Parse test for PURL type: maven", |
| 800 | "test_group": "base", |
| 801 | "test_type": "parse", |
| 802 | "input": "pkg:maven/groovy/[email protected]?repository_url=https://maven.google.com", |
| 803 | "expected_output": { |
| 804 | "type": "maven", |
| 805 | "namespace": "groovy", |
| 806 | "name": "groovy", |
| 807 | "version": "1.0", |
| 808 | "qualifiers": { |
| 809 | "repository_url": "https://maven.google.com" |
| 810 | }, |
| 811 | "subpath": null |
| 812 | }, |
| 813 | "expected_failure": false, |
| 814 | "expected_failure_reason": null |
| 815 | }, |
| 816 | { |
| 817 | "description": "Roundtrip test for PURL type: maven", |
| 818 | "test_group": "base", |
| 819 | "test_type": "roundtrip", |
| 820 | "input": "pkg:maven/groovy/[email protected]?repository_url=https://maven.google.com", |
| 821 | "expected_output": "pkg:maven/groovy/[email protected]?repository_url=https:%2F%2Fmaven.google.com", |
| 822 | "expected_failure": false, |
| 823 | "expected_failure_reason": null |
| 824 | }, |
| 825 | { |
| 826 | "description": "Build test for PURL type: maven", |
| 827 | "test_group": "base", |
| 828 | "test_type": "build", |
| 829 | "input": { |
| 830 | "type": "maven", |
| 831 | "namespace": "groovy", |
| 832 | "name": "groovy", |
| 833 | "version": "1.0", |
| 834 | "qualifiers": { |
| 835 | "repository_url": "https://maven.google.com" |
| 836 | }, |
| 837 | "subpath": null |
| 838 | }, |
| 839 | "expected_output": "pkg:maven/groovy/[email protected]?repository_url=https:%2F%2Fmaven.google.com", |
| 840 | "expected_failure": false, |
| 841 | "expected_failure_reason": null |
| 842 | } |
| 843 | ] |
| 844 | } |