From f396b2545427e9e1c08a6c13730024bca45dd4ce Mon Sep 17 00:00:00 2001 From: Raitis Veinbahs Date: Thu, 21 Nov 2024 17:10:48 +0100 Subject: [PATCH] add another mock to fix CopyrightAndLicensesSpec --- .../org/knora/webapi/it/v2/CopyrightAndLicensesSpec.scala | 2 +- .../org/knora/webapi/store/iiif/impl/SipiServiceMock.scala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/integration/src/test/scala/org/knora/webapi/it/v2/CopyrightAndLicensesSpec.scala b/integration/src/test/scala/org/knora/webapi/it/v2/CopyrightAndLicensesSpec.scala index 329911acec..74d5797c82 100644 --- a/integration/src/test/scala/org/knora/webapi/it/v2/CopyrightAndLicensesSpec.scala +++ b/integration/src/test/scala/org/knora/webapi/it/v2/CopyrightAndLicensesSpec.scala @@ -88,7 +88,7 @@ object CopyrightAndLicensesSpec extends E2EZSpec { val jsonLd = UploadFileRequest .make( FileType.StillImageFile(), - "internalFilename", + "internalFilename.jpg", copyrightAttribution = Some(copyrightAttribution), license = Some(license), ) diff --git a/webapi/src/main/scala/org/knora/webapi/store/iiif/impl/SipiServiceMock.scala b/webapi/src/main/scala/org/knora/webapi/store/iiif/impl/SipiServiceMock.scala index 120d2c144e..010ee3d6c3 100644 --- a/webapi/src/main/scala/org/knora/webapi/store/iiif/impl/SipiServiceMock.scala +++ b/webapi/src/main/scala/org/knora/webapi/store/iiif/impl/SipiServiceMock.scala @@ -96,7 +96,8 @@ object SipiServiceMock { Ref .make[Map[SipiMockMethodName, Task[Object]]]( Map( - GetFileMetadataFromSipiTemp -> ZIO.succeed(defaultGetFileMetadataFromSipiTempResponse), + GetFileMetadataFromSipiTemp -> ZIO.succeed(defaultGetFileMetadataFromSipiTempResponse), + GetFileMetadataFromDspIngest -> ZIO.succeed(defaultGetFileMetadataFromSipiTempResponse), ), ) .map(ref => SipiServiceMock(ref)),