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