Skip to content
Snippets Groups Projects
Unverified Commit 3efe143e authored by Paula Barszcz's avatar Paula Barszcz Committed by GitHub
Browse files

add a missing redirect to coveralls (#8644)

parent 93b8978e
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@ export default [
dateAdded: new Date('2021-02-23'),
}),
redirector({
name: 'CoverallsPreGitlabRedirect',
name: 'CoverallsPreGitlabRedirectWithBranch',
category: 'coverage',
route: {
base: 'coveralls',
......@@ -36,4 +36,15 @@ export default [
transformQueryParams: ({ branch }) => ({ branch }),
dateAdded: new Date('2022-11-10'),
}),
redirector({
name: 'CoverallsPreGitlabRedirectWithoutBranch',
category: 'coverage',
route: {
base: 'coveralls',
pattern: ':vcsType(github|bitbucket)/:user/:repo',
},
transformPath: ({ vcsType, user, repo }) =>
`/coverallsCoverage/${vcsType}/${user}/${repo}`,
dateAdded: new Date('2022-11-20'),
}),
]
......@@ -20,6 +20,12 @@ t.create(
.get('/github/jekyll/jekyll/master.svg')
.expectRedirect('/coverallsCoverage/github/jekyll/jekyll.svg?branch=master')
t.create(
'Redirect from before branch was a query param - github, without specified branch'
)
.get('/github/badges/shields')
.expectRedirect('/coverallsCoverage/github/badges/shields.svg')
t.create(
'Redirect from before branch was a query param - bitbucket, with specified branch'
)
......@@ -27,3 +33,9 @@ t.create(
.expectRedirect(
'/coverallsCoverage/bitbucket/pyKLIP/pyklip.svg?branch=master'
)
t.create(
'Redirect from before branch was a query param - bitbucket, without specified branch'
)
.get('/bitbucket/pyKLIP/pyklip.svg')
.expectRedirect('/coverallsCoverage/bitbucket/pyKLIP/pyklip.svg')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment