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:
@@ -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)')
|
||||
|
||||
Reference in New Issue
Block a user