From 18570bee9991a66528d5808a76496878041a9d7b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 18 Aug 2023 11:50:36 +0200 Subject: [PATCH] Add unset originallyPublishedAt test --- packages/tests/src/api/videos/multiple-servers.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/tests/src/api/videos/multiple-servers.ts b/packages/tests/src/api/videos/multiple-servers.ts index 03afd7cbb..d6e09236c 100644 --- a/packages/tests/src/api/videos/multiple-servers.ts +++ b/packages/tests/src/api/videos/multiple-servers.ts @@ -678,6 +678,21 @@ describe('Test multiple servers', function () { } }) + it('Should be able to remove originallyPublishedAt attribute', async function () { + this.timeout(60000) + + const attributes = { originallyPublishedAt: null } + await servers[2].videos.update({ id: toRemove[0].id, attributes }) + + await waitJobs(servers) + + for (const server of servers) { + const video = await server.videos.get({ id: toRemove[0].uuid }) + + expect(video.originallyPublishedAt).to.not.exist + } + }) + it('Should only update thumbnail and update updatedAt attribute', async function () { this.timeout(30000)