Checkpoint: v4.0 media service, compose deploy, and verified docs
这个提交包含在:
@@ -260,6 +260,37 @@ describe("video.list", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("video.registerExternal input validation", () => {
|
||||
it("requires authentication", async () => {
|
||||
const { ctx } = createMockContext(null);
|
||||
const caller = appRouter.createCaller(ctx);
|
||||
|
||||
await expect(
|
||||
caller.video.registerExternal({
|
||||
title: "session",
|
||||
url: "/media/assets/sessions/demo/recording.webm",
|
||||
fileKey: "media/sessions/demo/recording.webm",
|
||||
format: "webm",
|
||||
})
|
||||
).rejects.toThrow();
|
||||
});
|
||||
|
||||
it("rejects missing url", async () => {
|
||||
const user = createTestUser();
|
||||
const { ctx } = createMockContext(user);
|
||||
const caller = appRouter.createCaller(ctx);
|
||||
|
||||
await expect(
|
||||
caller.video.registerExternal({
|
||||
title: "session",
|
||||
url: "",
|
||||
fileKey: "media/sessions/demo/recording.webm",
|
||||
format: "webm",
|
||||
})
|
||||
).rejects.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("video.get input validation", () => {
|
||||
it("requires authentication", async () => {
|
||||
const { ctx } = createMockContext(null);
|
||||
|
||||
在新工单中引用
屏蔽一个用户