Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upate [RequiresIo] service test targets #7081

Merged
merged 2 commits into from
Oct 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions services/requires/requires.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,34 @@ const isRequireStatus = Joi.string().regex(
/^(up to date|outdated|insecure|unknown)$/
)

t.create('requirements (valid, without branch)')
.get('/github/zulip/zulip.json')
// Package targets can be found at https://requires.io/public
// However, there does seem to be some retention issues where
// results for projects are purged after some number of days.
// https://github.com/badges/shields/issues/7015
// https://github.com/requires/api/issues/5
t.create('requirements (valid GitHub, without branch)')
.get('/github/Hongbo-Miao/hongbomiao.com.json')
.expectBadge({
label: 'requirements',
message: isRequireStatus,
})

t.create('requirements (valid, with branch)')
.get('/github/zulip/zulip/master.json')
t.create('requirements (valid GitHub, with branch)')
.get('/github/Hongbo-Miao/hongbomiao.com/main.json')
.expectBadge({
label: 'requirements',
message: isRequireStatus,
})

t.create('requirements (valid Bitbucket, without branch)')
.get('/bitbucket/code-orange/django-ispstack.json')
.expectBadge({
label: 'requirements',
message: isRequireStatus,
})

t.create('requirements (valid Bitbucket, with branch)')
.get('/bitbucket/code-orange/django-ispstack/master.json')
.expectBadge({
label: 'requirements',
message: isRequireStatus,
Expand Down