|
561 | 561 | "test_group": "base",
|
562 | 562 | "test_type": "validation",
|
563 | 563 | "input": "pkg:cpan/Perl::[email protected]",
|
564 |
| - "expected_messages": null |
| 564 | + "expected_output": [] |
565 | 565 | },
|
566 | 566 | {
|
567 | 567 | "description": "Valid CPAN distribution with uppercase namespace (author ID)",
|
568 | 568 | "test_group": "base",
|
569 | 569 | "test_type": "validation",
|
570 | 570 | "input": "pkg:cpan/DROLSKY/[email protected]",
|
571 |
| - "expected_messages": null |
| 571 | + "expected_output": [] |
572 | 572 | },
|
573 | 573 | {
|
574 | 574 | "description": "Valid CPAN distribution without version",
|
575 | 575 | "test_group": "base",
|
576 | 576 | "test_type": "validation",
|
577 | 577 | "input": "pkg:cpan/GDT/URI-PackageURL",
|
578 |
| - "expected_messages": null |
| 578 | + "expected_output": [] |
579 | 579 | },
|
580 | 580 | {
|
581 | 581 | "description": "Valid CPAN module with :: in name and no namespace",
|
582 | 582 | "test_group": "base",
|
583 | 583 | "test_type": "validation",
|
584 | 584 | "input": "pkg:cpan/LWP::UserAgent",
|
585 |
| - "expected_messages": [] |
| 585 | + "expected_output": [] |
586 | 586 | },
|
587 | 587 | {
|
588 | 588 | "description": "CPAN distribution with lowercase namespace (must be uppercase)",
|
589 | 589 | "test_group": "base",
|
590 | 590 | "test_type": "validation",
|
591 | 591 | "input": "pkg:cpan/oalders/[email protected]",
|
592 |
| - "expected_messages": [ |
593 |
| - "Namespace must be uppercase for purl type: 'cpan'" |
| 592 | + "expected_output": [ |
| 593 | + { |
| 594 | + "severity": "warning", |
| 595 | + "message": "Namespace must be uppercase for purl type: 'cpan'" |
| 596 | + } |
594 | 597 | ]
|
595 | 598 | },
|
596 | 599 | {
|
597 | 600 | "description": "CPAN distribution with lowercase namespace (must be uppercase)",
|
598 | 601 | "test_group": "advanced",
|
599 | 602 | "test_type": "validation",
|
600 | 603 | "input": "pkg:cpan/oalders/[email protected]",
|
601 |
| - "expected_messages": null |
| 604 | + "expected_output": [] |
602 | 605 | },
|
603 | 606 | {
|
604 | 607 | "description": "CPAN module with '-' in name (not allowed without namespace)",
|
605 | 608 | "test_group": "base",
|
606 | 609 | "test_type": "validation",
|
607 | 610 | "input": "pkg:cpan/[email protected]",
|
608 |
| - "expected_messages": [ |
609 |
| - "Name must not contain '-' when Namespace is absent for purl type: 'cpan'" |
| 611 | + "expected_output": [ |
| 612 | + { |
| 613 | + "severity": "error", |
| 614 | + "message": "Name must not contain '-' when Namespace is absent for purl type: 'cpan'" |
| 615 | + } |
610 | 616 | ]
|
611 | 617 | },
|
612 | 618 | {
|
613 | 619 | "description": "CPAN distribution name containing '::' (not allowed with namespace)",
|
614 | 620 | "test_group": "advanced",
|
615 | 621 | "test_type": "validation",
|
616 | 622 | "input": "pkg:cpan/TESTUSER/Bad::[email protected]",
|
617 |
| - "expected_messages": [ |
618 |
| - "Name must not contain '::' when Namespace is absent for purl type: 'cpan'" |
| 623 | + "expected_output": [ |
| 624 | + { |
| 625 | + "severity": "error", |
| 626 | + "message": "Name must not contain '::' when Namespace is present for purl type: 'cpan'" |
| 627 | + } |
619 | 628 | ]
|
620 | 629 | },
|
621 | 630 | {
|
622 | 631 | "description": "Valid CPAN package with qualifiers (repository_url, download_url, vcs_url)",
|
623 | 632 | "test_group": "advanced",
|
624 | 633 | "test_type": "validation",
|
625 | 634 | "input": "pkg:cpan/OALDERS/[email protected]?download_url=https://cpan.metacpan.org/authors/id/O/OA/OALDERS/libwww-perl-6.76.tar.gz&ext=tar.gz&repository_url=https://cpan.metacpan.org&vcs_url=https://github.com/libwww-perl",
|
626 |
| - "expected_messages": [] |
| 635 | + "expected_output": [] |
627 | 636 | }
|
628 | 637 | ]
|
629 | 638 | }
|
0 commit comments