This migrates the puppetforge-modules from legacy services to the new service arch There are also some changes to the puppetforge-users badges, but its just moving code around
19 lines
430 B
JavaScript
19 lines
430 B
JavaScript
'use strict'
|
|
|
|
const { isSemver } = require('../test-validators')
|
|
const t = (module.exports = require('../tester').createServiceTester())
|
|
|
|
t.create('module version')
|
|
.get('/camptocamp/openssl.json')
|
|
.expectBadge({
|
|
label: 'puppetforge',
|
|
message: isSemver,
|
|
})
|
|
|
|
t.create('module version (not found)')
|
|
.get('/notarealuser/notarealpackage.json')
|
|
.expectBadge({
|
|
label: 'puppetforge',
|
|
message: 'not found',
|
|
})
|