fix: remove stale HTTP repository access branch
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
}
|
||||
|
||||
function supportsRepositoryAccess(kind: RepositorySourceKind): boolean {
|
||||
return kind === 'ssh' || kind === 'http' || kind === 'https';
|
||||
return kind === 'ssh' || kind === 'https';
|
||||
}
|
||||
let showAddRepository = $state(false);
|
||||
let repositoryKey = $state('');
|
||||
|
||||
@@ -255,6 +255,15 @@ Deno.test("Repository settings consume the validated shared wire shape", async (
|
||||
throw new Error(`Repository settings should include ${token}`);
|
||||
}
|
||||
}
|
||||
for (const kind of ["ssh", "https"]) {
|
||||
if (!pageSource.includes(`kind === '${kind}'`)) {
|
||||
throw new Error(`Repository Access should support ${kind}`);
|
||||
}
|
||||
}
|
||||
if (pageSource.includes("kind === 'http'")) {
|
||||
throw new Error("Repository Access must not support plain HTTP sources");
|
||||
}
|
||||
|
||||
for (
|
||||
const staleToken of [
|
||||
"repository.id",
|
||||
|
||||
Reference in New Issue
Block a user