From 89047dd1b3229151e35d27395e92b2c82de8e270 Mon Sep 17 00:00:00 2001 From: tomcrane Date: Wed, 11 Sep 2024 13:06:35 +0100 Subject: [PATCH] fix checksum --- LeedsPrototypeTests/samples/10315s-add-jpg/10315.METS.xml | 2 +- LeedsPrototypeTests/tests/exporting.spec.ts | 1 + LeedsPrototypeTests/tests/quick-prep.spec.ts | 5 +---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/LeedsPrototypeTests/samples/10315s-add-jpg/10315.METS.xml b/LeedsPrototypeTests/samples/10315s-add-jpg/10315.METS.xml index b7e615a..9d05af9 100644 --- a/LeedsPrototypeTests/samples/10315s-add-jpg/10315.METS.xml +++ b/LeedsPrototypeTests/samples/10315s-add-jpg/10315.METS.xml @@ -150,7 +150,7 @@ sha256 - e00021d2337436e4cd338ab3ae77adb2f5def2a30cd303f35ad419568f9b9e63 + 5d235e69c795ec73fd45ed5eb9f75be7f0075abccd4ee0b622bfc3c898379710 135782 diff --git a/LeedsPrototypeTests/tests/exporting.spec.ts b/LeedsPrototypeTests/tests/exporting.spec.ts index eac0a06..530d3bc 100644 --- a/LeedsPrototypeTests/tests/exporting.spec.ts +++ b/LeedsPrototypeTests/tests/exporting.spec.ts @@ -32,6 +32,7 @@ test.describe('Export an existing Digital Object and make changes to it, then cr expect(exportDeposit.files).toMatch(/s3:\/\/.*/); console.log("The files for " + digitalObjectUri + " have been placed under " + exportDeposit.files); + const s3Client = getS3Client(); await listKeys(s3Client, exportDeposit.files); diff --git a/LeedsPrototypeTests/tests/quick-prep.spec.ts b/LeedsPrototypeTests/tests/quick-prep.spec.ts index 64a0d59..7cb4f4d 100644 --- a/LeedsPrototypeTests/tests/quick-prep.spec.ts +++ b/LeedsPrototypeTests/tests/quick-prep.spec.ts @@ -30,10 +30,7 @@ export async function createDigitalObject(request: APIRequestContext, baseURL: s console.log("Execute the diff in one operation, without fetching it first (see RFC)") // This is a shortcut, a variation on the mechanism shown in create-deposit.spec.ts const executeImportJobReq = await request.post(newDeposit['@id'] + '/importJobs', { - data: { - "@id": newDeposit['@id'] + '/importJobs/diff', - type: 'ImportJob' - } + data: { "@id": newDeposit['@id'] + '/importJobs/diff' } }); let importJobResult = await executeImportJobReq.json(); await expect.poll(async () => {