| 1 | { |
| 2 | "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json", |
| 3 | "tests": [ |
| 4 | { |
| 5 | "description": "Parse test for PURL type: apk", |
| 6 | "test_group": "base", |
| 7 | "test_type": "parse", |
| 8 | "input": "pkg:apk/alpine/[email protected]?arch=x86", |
| 9 | "expected_output": { |
| 10 | "type": "apk", |
| 11 | "namespace": "alpine", |
| 12 | "name": "curl", |
| 13 | "version": "7.83.0-r0", |
| 14 | "qualifiers": { |
| 15 | "arch": "x86" |
| 16 | }, |
| 17 | "subpath": null |
| 18 | }, |
| 19 | "expected_failure": false, |
| 20 | "expected_failure_reason": null |
| 21 | }, |
| 22 | { |
| 23 | "description": "Roundtrip test for PURL type: apk", |
| 24 | "test_group": "base", |
| 25 | "test_type": "roundtrip", |
| 26 | "input": "pkg:apk/alpine/[email protected]?arch=x86", |
| 27 | "expected_output": "pkg:apk/alpine/[email protected]?arch=x86", |
| 28 | "expected_failure": false, |
| 29 | "expected_failure_reason": null |
| 30 | }, |
| 31 | { |
| 32 | "description": "Build test for PURL type: apk", |
| 33 | "test_group": "base", |
| 34 | "test_type": "build", |
| 35 | "input": { |
| 36 | "type": "apk", |
| 37 | "namespace": "alpine", |
| 38 | "name": "curl", |
| 39 | "version": "7.83.0-r0", |
| 40 | "qualifiers": { |
| 41 | "arch": "x86" |
| 42 | }, |
| 43 | "subpath": null |
| 44 | }, |
| 45 | "expected_output": "pkg:apk/alpine/[email protected]?arch=x86", |
| 46 | "expected_failure": false, |
| 47 | "expected_failure_reason": null |
| 48 | }, |
| 49 | { |
| 50 | "description": "Parse test for PURL type: apk", |
| 51 | "test_group": "base", |
| 52 | "test_type": "parse", |
| 53 | "input": "pkg:apk/alpine/[email protected]?arch=x86", |
| 54 | "expected_output": { |
| 55 | "type": "apk", |
| 56 | "namespace": "alpine", |
| 57 | "name": "apk", |
| 58 | "version": "2.12.9-r3", |
| 59 | "qualifiers": { |
| 60 | "arch": "x86" |
| 61 | }, |
| 62 | "subpath": null |
| 63 | }, |
| 64 | "expected_failure": false, |
| 65 | "expected_failure_reason": null |
| 66 | }, |
| 67 | { |
| 68 | "description": "Roundtrip test for PURL type: apk", |
| 69 | "test_group": "base", |
| 70 | "test_type": "roundtrip", |
| 71 | "input": "pkg:apk/alpine/[email protected]?arch=x86", |
| 72 | "expected_output": "pkg:apk/alpine/[email protected]?arch=x86", |
| 73 | "expected_failure": false, |
| 74 | "expected_failure_reason": null |
| 75 | }, |
| 76 | { |
| 77 | "description": "Build test for PURL type: apk", |
| 78 | "test_group": "base", |
| 79 | "test_type": "build", |
| 80 | "input": { |
| 81 | "type": "apk", |
| 82 | "namespace": "alpine", |
| 83 | "name": "apk", |
| 84 | "version": "2.12.9-r3", |
| 85 | "qualifiers": { |
| 86 | "arch": "x86" |
| 87 | }, |
| 88 | "subpath": null |
| 89 | }, |
| 90 | "expected_output": "pkg:apk/alpine/[email protected]?arch=x86", |
| 91 | "expected_failure": false, |
| 92 | "expected_failure_reason": null |
| 93 | } |
| 94 | ] |
| 95 | } |