1
0
mirror of https://github.com/badges/shields.git synced 2025-11-13 22:22:40 +03:00

migrate examples to openApi part 26; affects [gitlab] (#9752)

* replace failing 'other' test with a mock

* update pipeline/coverage 'not found' tests

* migrate gitlab from examples to openApi

* eat own tail
This commit is contained in:
chris48s
2023-12-30 17:38:31 +00:00
committed by GitHub
parent 7d7efaec22
commit 10bf39632a
16 changed files with 313 additions and 632 deletions

View File

@@ -23,11 +23,19 @@ t.create('Coverage (nonexistent branch)')
message: 'not set up',
})
// Gitlab will redirect users to a sign-in page
// (which we ultimately see as a 403 error) in the event
// a nonexistent, or private, repository is specified.
// Given the additional complexity that would've been required to
// present users with a more traditional and friendly 'Not Found'
// error message, we will simply display invalid
// https://github.com/badges/shields/pull/5538
// https://github.com/badges/shields/pull/9752
t.create('Coverage (nonexistent repo)')
.get('/this-repo/does-not-exist.json')
.expectBadge({
label: 'coverage',
message: 'inaccessible',
message: 'invalid',
})
t.create('Coverage (custom job)')