feat(imports): job claims carry IMVU's rating (#19)
Release / release (push) Successful in 4s
CI / test (push) Successful in 1m35s
CI / image (apps/api/Dockerfile, t5de-hub-api) (push) Successful in 4s
CI / image (apps/web/Dockerfile, t5de-hub-web) (push) Successful in 18s

Co-authored-by: dhkatz <[email protected]>
This commit was merged in pull request #19.
This commit is contained in:
dhkatz authored and dhkatz committed 2026-11-08 14:37:33 +00:00
1 parent 79c98078cb
commit 56d25f7507
4 files changed
+14 -4

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ test("grants, requests, the importer's jobs, and withdrawal", async () => {
// The importer claims the job, gets a token for the revision it found, and uploads; the catalog registers it.
const claimed = (await call(undefined, "POST", "/api/v1/importer/jobs/claim", { limit: 5 }, importer)).json.jobs;
expect(claimed).toEqual([{ id: expect.any(String), kind: "import", imvuProduct: 9001, lastRevision: 0 }]);
expect(claimed).toEqual([{ id: expect.any(String), kind: "import", imvuProduct: 9001, lastRevision: 0, rating: "general" }]);
const tok = await call(undefined, "POST", `/api/v1/importer/jobs/${claimed[0].id}/token`, { imvuRevision: 3 }, importer);
expect(tok.json.url).toBe("https://imports.example.test/api/v1/uploads");
const files = [file("index.xml", 11), file("dress.xmf", 12)];