|
90 | 90 | "expected_output": "pkg:apk/alpine/apk@2.12.9-r3?arch=x86", |
91 | 91 | "expected_failure": false, |
92 | 92 | "expected_failure_reason": null |
| 93 | + }, |
| 94 | + { |
| 95 | + "description": "Valid apk package with arch qualifier", |
| 96 | + "test_group": "base", |
| 97 | + "test_type": "validation", |
| 98 | + "input": "pkg:apk/alpine/curl@7.83.0-r0?arch=x86", |
| 99 | + "expected_output": [] |
| 100 | + }, |
| 101 | + { |
| 102 | + "description": "Valid apk package with higher version and arch qualifier", |
| 103 | + "test_group": "base", |
| 104 | + "test_type": "validation", |
| 105 | + "input": "pkg:apk/alpine/apk@2.12.9-r3?arch=x86", |
| 106 | + "expected_output": [] |
| 107 | + }, |
| 108 | + { |
| 109 | + "description": "Valid apk package with openwrt vendor", |
| 110 | + "test_group": "advanced", |
| 111 | + "test_type": "validation", |
| 112 | + "input": "pkg:apk/openwrt/busybox@1.35.0-r5?arch=mips", |
| 113 | + "expected_output": [] |
| 114 | + }, |
| 115 | + { |
| 116 | + "description": "apk package missing namespace", |
| 117 | + "test_group": "base", |
| 118 | + "test_type": "validation", |
| 119 | + "input": "pkg:apk/curl@7.83.0-r0?arch=x86", |
| 120 | + "expected_output": [ |
| 121 | + { |
| 122 | + "severity": "error", |
| 123 | + "message": "Namespace is required for purl type: 'apk'" |
| 124 | + } |
| 125 | + ] |
| 126 | + }, |
| 127 | + { |
| 128 | + "description": "apk package with uppercase namespace and name", |
| 129 | + "test_group": "base", |
| 130 | + "test_type": "validation", |
| 131 | + "input": "pkg:apk/FOO/BAR@7.83.0-r0?arch=x86", |
| 132 | + "expected_output": [ |
| 133 | + { |
| 134 | + "severity": "warning", |
| 135 | + "message": "Namespace is not lowercased for purl type: 'apk'" |
| 136 | + }, |
| 137 | + { |
| 138 | + "severity": "warning", |
| 139 | + "message": "Name is not lowercased for purl type: 'apk'" |
| 140 | + } |
| 141 | + ] |
| 142 | + }, |
| 143 | + { |
| 144 | + "description": "apk package with uppercase namespace and name (advanced)", |
| 145 | + "test_group": "advanced", |
| 146 | + "test_type": "validation", |
| 147 | + "input": "pkg:apk/FOO/BAR@7.83.0-r0?arch=x86", |
| 148 | + "expected_output": [] |
93 | 149 | } |
94 | 150 | ] |
95 | 151 | } |
0 commit comments