Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Image to 3D: accounts can't start the other sides from one picture either (tested)

Claude8384e27ec81a
diff --git a/tests/account-idol.test.ts b/tests/account-idol.test.ts
index e2d8a2a1..c973488e 100644
--- a/tests/account-idol.test.ts
+++ b/tests/account-idol.test.ts
@@ -7,7 +7,7 @@ import { startFakeComfy, TINY_PNG, type FakeComfy } from "./helpers/fake-comfy-r
/**
* Idol 3D (idol-1) under public sign-up: 3D models are closed to accounts, so an account's Idol run answers 403
* own-gpu-tool on both engines — on its own linked ComfyUI (oss-idol) and with its own fal.ai key (idol-3d) — and
- * nothing reaches its GPU or fal.
+ * nothing reaches its GPU or fal. So does its "Make the other sides" run (idol-8: Idol 3D's four views).
*/
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-account-idol-"));
@@ -31,6 +31,7 @@ const generationsRoute = await import("@/app/api/generations/route");
const { saveFile } = await import("@/server/storage");
const { getModel } = await import("@/lib/catalog");
const { model3dRequest } = await import("@/lib/av/model3d");
+const { idolViewsRequest } = await import("@/lib/av/idol-views");
let fake: FakeComfy;
let cookie = "";
@@ -80,4 +81,13 @@ describe("Idol 3D stays closed to accounts", () => {
expect(fake.log.filter((e) => e.path === "/prompt" || e.path === "/upload/image")).toHaveLength(0);
expect(fetched.filter((u) => /fal\.(run|ai|media)/.test(u))).toHaveLength(0);
});
+
+ it("the other sides from one picture (Idol 3D's views): 403 own-gpu-tool, nothing sent", async () => {
+ const photo = saveFile({ data: TINY_PNG, contentType: "image/png", source: "upload", accountId: account }).url;
+ fake.log.length = 0;
+ const r = await post(idolViewsRequest(photo));
+ expect(r.status, await r.clone().text()).toBe(403);
+ expect((await r.json()).code).toBe("own-gpu-tool");
+ expect(fake.log.filter((e) => e.path === "/prompt" || e.path === "/upload/image")).toHaveLength(0);
+ });
});