|
150 | 150 | </td> |
151 | 151 | <td class="text-center" width="15%"> |
152 | 152 | <q-chip |
153 | | - :color="log.success ? 'green' : 'negative'" |
| 153 | + :color=" |
| 154 | + log.skipped ? 'warning' : log.success ? 'green' : 'negative' |
| 155 | + " |
154 | 156 | text-color="white" |
155 | 157 | dense |
156 | 158 | class="text-weight-bolder text-capitalize" |
157 | 159 | square |
158 | 160 | > |
159 | | - {{ log.success ? 'done' : 'failed' }} |
| 161 | + {{ |
| 162 | + log.skipped |
| 163 | + ? 'skipped' // If skipped |
| 164 | + : log.success |
| 165 | + ? 'done' |
| 166 | + : 'failed' |
| 167 | + }} |
160 | 168 | </q-chip> |
161 | 169 | </td> |
162 | 170 | </tr> |
|
184 | 192 | </template> |
185 | 193 | </template> |
186 | 194 | </tbody> |
187 | | - <tr v-if="!tests || tests.length == 0"> |
188 | | - <td colspan="4" class="text-center text-blue-7"> |
189 | | - <h6>Nothing here yet</h6> |
190 | | - </td> |
191 | | - </tr> |
| 195 | + <tbody v-if="!tests || tests.length == 0"> |
| 196 | + <tr> |
| 197 | + <td colspan="4" class="text-center text-blue-7"> |
| 198 | + <h6>Nothing here yet</h6> |
| 199 | + </td> |
| 200 | + </tr> |
| 201 | + </tbody> |
192 | 202 | </table> |
193 | 203 | </div> |
194 | 204 |
|
|
224 | 234 | 'system_info', |
225 | 235 | 'install_package', |
226 | 236 | 'tests', |
| 237 | + 'package_integrity_tests', |
227 | 238 | 'third_party', |
228 | 239 | 'uninstall_package', |
229 | 240 | 'stop_environment', |
|
298 | 309 | .filter((opt) => test.alts_response.result[opt]) |
299 | 310 | .forEach((opt) => { |
300 | 311 | let res = {} |
| 312 | + if (test.alts_response.result.skipped_tests?.length > 0) { |
| 313 | + while (test.alts_response.result.skipped_tests.length > 0) { |
| 314 | + let res = { |
| 315 | + skipped: true, |
| 316 | + name: 'Skipped test', |
| 317 | + short_name: |
| 318 | + test.alts_response.result.skipped_tests.shift(), |
| 319 | + } |
| 320 | + parsed_test.result.push(res) |
| 321 | + } |
| 322 | + } |
301 | 323 | if (['tests', 'third_party'].includes(opt)) { |
302 | 324 | for (const item in test.alts_response.result[opt]) { |
303 | 325 | res = { |
|
333 | 355 | } |
334 | 356 | } |
335 | 357 | }) |
| 358 | + parsed_test.result.sort((a, b) => { |
| 359 | + return ( |
| 360 | + this.test_options.indexOf(a.short_name) - |
| 361 | + this.test_options.indexOf(b.short_name) |
| 362 | + ) |
| 363 | + }) |
336 | 364 | this.tests.push(parsed_test) |
337 | 365 | }) |
338 | 366 | }) |
|
362 | 390 | } |
363 | 391 | }, |
364 | 392 | onView(log) { |
365 | | - let logUrl = `${window.origin}/pulp/content/test_logs/build-${this.buildId}-test_log/${log.name}` |
366 | | - this.selectedLog = log.name |
367 | | - axios.get(logUrl).then((response) => { |
368 | | - this.logText = response.data |
| 393 | + if (log.name === 'Skipped test') { |
| 394 | + this.logText = |
| 395 | + 'This test was marked to be skipped specifically for this project and platform' |
369 | 396 | this.$refs.openLogView.open() |
370 | | - }) |
| 397 | + } else { |
| 398 | + let logUrl = `${window.origin}/pulp/content/test_logs/build-${this.buildId}-test_log/${log.name}` |
| 399 | + this.selectedLog = log.name |
| 400 | + axios.get(logUrl).then((response) => { |
| 401 | + this.logText = response.data |
| 402 | + this.$refs.openLogView.open() |
| 403 | + }) |
| 404 | + } |
371 | 405 | }, |
372 | 406 | }, |
373 | 407 | components: { |
|
0 commit comments