mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: harden plugin api for separate repos, signed updates and generic external login
This commit is contained in:
1 parent
fb9c168b6b
commit
80944301dd
310 files changed
+6577
-4927
No files matched your search
@@ -141,7 +141,7 @@ export async function startServer(
|
||||
live,
|
||||
sharing: mock.services.get("sessions.sharing") as SessionSharingV1,
|
||||
guests: mock.ctx.registry.consume<SessionGuestsV1>(
|
||||
"sessions.sharing.guests",
|
||||
"session-sharing.guests",
|
||||
)!,
|
||||
async request(method, path, { user = "alice", body: given } = {}) {
|
||||
const body = method === "GET" ? undefined : given;
|
||||
|
||||
@@ -416,7 +416,9 @@ describe("room guest links", () => {
|
||||
roomGuestToken: "guess",
|
||||
clientIp: "9.9.9.9",
|
||||
});
|
||||
if (!result.ok && result.reason === "Too many requests") refused = true;
|
||||
if (result.ok === false && result.reason === "Too many requests") {
|
||||
refused = true;
|
||||
}
|
||||
}
|
||||
expect(refused).toBe(true);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user