| 1 | { |
| 2 | "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json", |
| 3 | "tests": [ |
| 4 | { |
| 5 | "description": "Parse test for PURL type: bitnami", |
| 6 | "test_group": "base", |
| 7 | "test_type": "parse", |
| 8 | "input": "pkg:bitnami/wordpress?distro=debian-12", |
| 9 | "expected_output": { |
| 10 | "type": "bitnami", |
| 11 | "namespace": null, |
| 12 | "name": "wordpress", |
| 13 | "version": null, |
| 14 | "qualifiers": { |
| 15 | "distro": "debian-12" |
| 16 | }, |
| 17 | "subpath": null |
| 18 | }, |
| 19 | "expected_failure": false, |
| 20 | "expected_failure_reason": null |
| 21 | }, |
| 22 | { |
| 23 | "description": "Roundtrip test for PURL type: bitnami", |
| 24 | "test_group": "base", |
| 25 | "test_type": "roundtrip", |
| 26 | "input": "pkg:bitnami/wordpress?distro=debian-12", |
| 27 | "expected_output": "pkg:bitnami/wordpress?distro=debian-12", |
| 28 | "expected_failure": false, |
| 29 | "expected_failure_reason": null |
| 30 | }, |
| 31 | { |
| 32 | "description": "Build test for PURL type: bitnami", |
| 33 | "test_group": "base", |
| 34 | "test_type": "build", |
| 35 | "input": { |
| 36 | "type": "bitnami", |
| 37 | "namespace": null, |
| 38 | "name": "wordpress", |
| 39 | "version": null, |
| 40 | "qualifiers": { |
| 41 | "distro": "debian-12" |
| 42 | }, |
| 43 | "subpath": null |
| 44 | }, |
| 45 | "expected_output": "pkg:bitnami/wordpress?distro=debian-12", |
| 46 | "expected_failure": false, |
| 47 | "expected_failure_reason": null |
| 48 | }, |
| 49 | { |
| 50 | "description": "Parse test for PURL type: bitnami", |
| 51 | "test_group": "base", |
| 52 | "test_type": "parse", |
| 53 | "input": "pkg:bitnami/[email protected]?distro=debian-12", |
| 54 | "expected_output": { |
| 55 | "type": "bitnami", |
| 56 | "namespace": null, |
| 57 | "name": "wordpress", |
| 58 | "version": "6.2.0", |
| 59 | "qualifiers": { |
| 60 | "distro": "debian-12" |
| 61 | }, |
| 62 | "subpath": null |
| 63 | }, |
| 64 | "expected_failure": false, |
| 65 | "expected_failure_reason": null |
| 66 | }, |
| 67 | { |
| 68 | "description": "Roundtrip test for PURL type: bitnami", |
| 69 | "test_group": "base", |
| 70 | "test_type": "roundtrip", |
| 71 | "input": "pkg:bitnami/[email protected]?distro=debian-12", |
| 72 | "expected_output": "pkg:bitnami/[email protected]?distro=debian-12", |
| 73 | "expected_failure": false, |
| 74 | "expected_failure_reason": null |
| 75 | }, |
| 76 | { |
| 77 | "description": "Build test for PURL type: bitnami", |
| 78 | "test_group": "base", |
| 79 | "test_type": "build", |
| 80 | "input": { |
| 81 | "type": "bitnami", |
| 82 | "namespace": null, |
| 83 | "name": "wordpress", |
| 84 | "version": "6.2.0", |
| 85 | "qualifiers": { |
| 86 | "distro": "debian-12" |
| 87 | }, |
| 88 | "subpath": null |
| 89 | }, |
| 90 | "expected_output": "pkg:bitnami/[email protected]?distro=debian-12", |
| 91 | "expected_failure": false, |
| 92 | "expected_failure_reason": null |
| 93 | }, |
| 94 | { |
| 95 | "description": "Parse test for PURL type: bitnami", |
| 96 | "test_group": "base", |
| 97 | "test_type": "parse", |
| 98 | "input": "pkg:bitnami/[email protected]?arch=arm64&distro=debian-12", |
| 99 | "expected_output": { |
| 100 | "type": "bitnami", |
| 101 | "namespace": null, |
| 102 | "name": "wordpress", |
| 103 | "version": "6.2.0", |
| 104 | "qualifiers": { |
| 105 | "arch": "arm64", |
| 106 | "distro": "debian-12" |
| 107 | }, |
| 108 | "subpath": null |
| 109 | }, |
| 110 | "expected_failure": false, |
| 111 | "expected_failure_reason": null |
| 112 | }, |
| 113 | { |
| 114 | "description": "Roundtrip test for PURL type: bitnami", |
| 115 | "test_group": "base", |
| 116 | "test_type": "roundtrip", |
| 117 | "input": "pkg:bitnami/[email protected]?arch=arm64&distro=debian-12", |
| 118 | "expected_output": "pkg:bitnami/[email protected]?arch=arm64&distro=debian-12", |
| 119 | "expected_failure": false, |
| 120 | "expected_failure_reason": null |
| 121 | }, |
| 122 | { |
| 123 | "description": "Build test for PURL type: bitnami", |
| 124 | "test_group": "base", |
| 125 | "test_type": "build", |
| 126 | "input": { |
| 127 | "type": "bitnami", |
| 128 | "namespace": null, |
| 129 | "name": "wordpress", |
| 130 | "version": "6.2.0", |
| 131 | "qualifiers": { |
| 132 | "arch": "arm64", |
| 133 | "distro": "debian-12" |
| 134 | }, |
| 135 | "subpath": null |
| 136 | }, |
| 137 | "expected_output": "pkg:bitnami/[email protected]?arch=arm64&distro=debian-12", |
| 138 | "expected_failure": false, |
| 139 | "expected_failure_reason": null |
| 140 | }, |
| 141 | { |
| 142 | "description": "Parse test for PURL type: bitnami", |
| 143 | "test_group": "base", |
| 144 | "test_type": "parse", |
| 145 | "input": "pkg:bitnami/[email protected]?arch=arm64&distro=photon-4", |
| 146 | "expected_output": { |
| 147 | "type": "bitnami", |
| 148 | "namespace": null, |
| 149 | "name": "wordpress", |
| 150 | "version": "6.2.0", |
| 151 | "qualifiers": { |
| 152 | "arch": "arm64", |
| 153 | "distro": "photon-4" |
| 154 | }, |
| 155 | "subpath": null |
| 156 | }, |
| 157 | "expected_failure": false, |
| 158 | "expected_failure_reason": null |
| 159 | }, |
| 160 | { |
| 161 | "description": "Roundtrip test for PURL type: bitnami", |
| 162 | "test_group": "base", |
| 163 | "test_type": "roundtrip", |
| 164 | "input": "pkg:bitnami/[email protected]?arch=arm64&distro=photon-4", |
| 165 | "expected_output": "pkg:bitnami/[email protected]?arch=arm64&distro=photon-4", |
| 166 | "expected_failure": false, |
| 167 | "expected_failure_reason": null |
| 168 | }, |
| 169 | { |
| 170 | "description": "Build test for PURL type: bitnami", |
| 171 | "test_group": "base", |
| 172 | "test_type": "build", |
| 173 | "input": { |
| 174 | "type": "bitnami", |
| 175 | "namespace": null, |
| 176 | "name": "wordpress", |
| 177 | "version": "6.2.0", |
| 178 | "qualifiers": { |
| 179 | "arch": "arm64", |
| 180 | "distro": "photon-4" |
| 181 | }, |
| 182 | "subpath": null |
| 183 | }, |
| 184 | "expected_output": "pkg:bitnami/[email protected]?arch=arm64&distro=photon-4", |
| 185 | "expected_failure": false, |
| 186 | "expected_failure_reason": null |
| 187 | } |
| 188 | ] |
| 189 | } |