mirror of
https://github.com/badges/shields.git
synced 2025-11-16 21:02:28 +03:00
23 lines
854 B
JavaScript
23 lines
854 B
JavaScript
import { createServiceTester } from '../tester.js'
|
|
export const t = await createServiceTester()
|
|
|
|
t.create('Coverage redirect (with branch)')
|
|
.get('/gitlab-org/gitlab-runner/master.json')
|
|
.expectRedirect(
|
|
'/gitlab/pipeline-coverage/gitlab-org/gitlab-runner.json?branch=master',
|
|
)
|
|
|
|
t.create('Coverage redirect (with branch and job_name)')
|
|
.get('/gitlab-org/gitlab-runner/master.json?job_name=test coverage report')
|
|
.expectRedirect(
|
|
'/gitlab/pipeline-coverage/gitlab-org/gitlab-runner.json?job_name=test%20coverage%20report&branch=master',
|
|
)
|
|
|
|
t.create('Coverage redirect (with branch and gitlab_url)')
|
|
.get(
|
|
'/gitlab-org/gitlab-runner/master.json?gitlab_url=https://gitlab.gnome.org',
|
|
)
|
|
.expectRedirect(
|
|
'/gitlab/pipeline-coverage/gitlab-org/gitlab-runner.json?gitlab_url=https%3a%2f%2fgitlab.gnome.org&branch=master',
|
|
)
|