| 1 |
{ |
| 2 |
"$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json", |
| 3 |
"tests": [ |
| 4 |
{ |
| 5 |
"description": "rpm often use qualifiers. Roundtrip an input purl to canonical.", |
| 6 |
"test_group": "advanced", |
| 7 |
"test_type": "roundtrip", |
| 8 |
"input": "pkg:Rpm/fedora/[email protected]?Arch=i386&Distro=fedora-25", |
| 9 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 10 |
"expected_failure": false, |
| 11 |
"expected_failure_reason": null |
| 12 |
}, |
| 13 |
{ |
| 14 |
"description": "rpm often use qualifiers", |
| 15 |
"test_group": "base", |
| 16 |
"test_type": "parse", |
| 17 |
"input": "pkg:Rpm/fedora/[email protected]?Arch=i386&Distro=fedora-25", |
| 18 |
"expected_output": { |
| 19 |
"type": "rpm", |
| 20 |
"namespace": "fedora", |
| 21 |
"name": "curl", |
| 22 |
"version": "7.50.3-1.fc25", |
| 23 |
"qualifiers": { |
| 24 |
"arch": "i386", |
| 25 |
"distro": "fedora-25" |
| 26 |
}, |
| 27 |
"subpath": null |
| 28 |
}, |
| 29 |
"expected_failure": false, |
| 30 |
"expected_failure_reason": null |
| 31 |
}, |
| 32 |
{ |
| 33 |
"description": "rpm often use qualifiers. Roundtrip a canonical input to canonical output.", |
| 34 |
"test_group": "base", |
| 35 |
"test_type": "roundtrip", |
| 36 |
"input": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 37 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 38 |
"expected_failure": false, |
| 39 |
"expected_failure_reason": null |
| 40 |
}, |
| 41 |
{ |
| 42 |
"description": "rpm often use qualifiers", |
| 43 |
"test_group": "base", |
| 44 |
"test_type": "build", |
| 45 |
"input": { |
| 46 |
"type": "rpm", |
| 47 |
"namespace": "fedora", |
| 48 |
"name": "curl", |
| 49 |
"version": "7.50.3-1.fc25", |
| 50 |
"qualifiers": { |
| 51 |
"arch": "i386", |
| 52 |
"distro": "fedora-25" |
| 53 |
}, |
| 54 |
"subpath": null |
| 55 |
}, |
| 56 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 57 |
"expected_failure": false, |
| 58 |
"expected_failure_reason": null |
| 59 |
}, |
| 60 |
{ |
| 61 |
"description": "Parse test for PURL type: rpm", |
| 62 |
"test_group": "base", |
| 63 |
"test_type": "parse", |
| 64 |
"input": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 65 |
"expected_output": { |
| 66 |
"type": "rpm", |
| 67 |
"namespace": "fedora", |
| 68 |
"name": "curl", |
| 69 |
"version": "7.50.3-1.fc25", |
| 70 |
"qualifiers": { |
| 71 |
"arch": "i386", |
| 72 |
"distro": "fedora-25" |
| 73 |
}, |
| 74 |
"subpath": null |
| 75 |
}, |
| 76 |
"expected_failure": false, |
| 77 |
"expected_failure_reason": null |
| 78 |
}, |
| 79 |
{ |
| 80 |
"description": "Roundtrip test for PURL type: rpm", |
| 81 |
"test_group": "base", |
| 82 |
"test_type": "roundtrip", |
| 83 |
"input": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 84 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 85 |
"expected_failure": false, |
| 86 |
"expected_failure_reason": null |
| 87 |
}, |
| 88 |
{ |
| 89 |
"description": "Build test for PURL type: rpm", |
| 90 |
"test_group": "base", |
| 91 |
"test_type": "build", |
| 92 |
"input": { |
| 93 |
"type": "rpm", |
| 94 |
"namespace": "fedora", |
| 95 |
"name": "curl", |
| 96 |
"version": "7.50.3-1.fc25", |
| 97 |
"qualifiers": { |
| 98 |
"arch": "i386", |
| 99 |
"distro": "fedora-25" |
| 100 |
}, |
| 101 |
"subpath": null |
| 102 |
}, |
| 103 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25", |
| 104 |
"expected_failure": false, |
| 105 |
"expected_failure_reason": null |
| 106 |
}, |
| 107 |
{ |
| 108 |
"description": "Parse test for PURL type: rpm", |
| 109 |
"test_group": "base", |
| 110 |
"test_type": "parse", |
| 111 |
"input": "pkg:rpm/fedora/[email protected]?arch=i686&epoch=1&distro=fedora-25", |
| 112 |
"expected_output": { |
| 113 |
"type": "rpm", |
| 114 |
"namespace": "fedora", |
| 115 |
"name": "centerim", |
| 116 |
"version": "4.22.10-1.el6", |
| 117 |
"qualifiers": { |
| 118 |
"arch": "i686", |
| 119 |
"distro": "fedora-25", |
| 120 |
"epoch": "1" |
| 121 |
}, |
| 122 |
"subpath": null |
| 123 |
}, |
| 124 |
"expected_failure": false, |
| 125 |
"expected_failure_reason": null |
| 126 |
}, |
| 127 |
{ |
| 128 |
"description": "Roundtrip test for PURL type: rpm", |
| 129 |
"test_group": "base", |
| 130 |
"test_type": "roundtrip", |
| 131 |
"input": "pkg:rpm/fedora/[email protected]?arch=i686&epoch=1&distro=fedora-25", |
| 132 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i686&distro=fedora-25&epoch=1", |
| 133 |
"expected_failure": false, |
| 134 |
"expected_failure_reason": null |
| 135 |
}, |
| 136 |
{ |
| 137 |
"description": "Build test for PURL type: rpm", |
| 138 |
"test_group": "base", |
| 139 |
"test_type": "build", |
| 140 |
"input": { |
| 141 |
"type": "rpm", |
| 142 |
"namespace": "fedora", |
| 143 |
"name": "centerim", |
| 144 |
"version": "4.22.10-1.el6", |
| 145 |
"qualifiers": { |
| 146 |
"arch": "i686", |
| 147 |
"distro": "fedora-25", |
| 148 |
"epoch": "1" |
| 149 |
}, |
| 150 |
"subpath": null |
| 151 |
}, |
| 152 |
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i686&distro=fedora-25&epoch=1", |
| 153 |
"expected_failure": false, |
| 154 |
"expected_failure_reason": null |
| 155 |
} |
| 156 |
] |
| 157 |
} |