chore(routes): close Shanghai mission and unify code channel
This commit is contained in:
parent
5e2ba5b006
commit
2bf4b63cff
24 changed files with 246 additions and 129 deletions
|
|
@ -19,8 +19,14 @@ test("HTTPS, .git and repo forms resolve to one repository identity", () => {
|
|||
assert.equal(publishLeaseResource(expected), `${expected}#main`);
|
||||
});
|
||||
|
||||
test("only the two current repositories are allowed", () => {
|
||||
assert.equal(currentCodeChannelRepositories.length, 2);
|
||||
test("only the three current repositories are allowed", () => {
|
||||
assert.equal(currentCodeChannelRepositories.length, 3);
|
||||
assert.equal(
|
||||
normalizeCodeChannelRepository(
|
||||
"https://guanghulab.com/code/bingshuo/grok-build-upstream-mirror.git",
|
||||
),
|
||||
"repo://guanghulab.com/code/bingshuo/grok-build-upstream-mirror",
|
||||
);
|
||||
for (const invalid of [
|
||||
"https://guanghulab.com/fifth-domain/bingshuo/fifth-domain.git",
|
||||
"https://guanghubingshuo.com/code/bingshuo/guanghulab.git",
|
||||
|
|
@ -39,4 +45,3 @@ test("credential-bearing remotes are rejected", () => {
|
|||
/CREDENTIALS_FORBIDDEN/u,
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue