From 00e9c2a7185849e24ae336bb6d78dd7bb27f0772 Mon Sep 17 00:00:00 2001 From: Raitis Veinbahs Date: Wed, 13 Nov 2024 00:01:02 +0100 Subject: [PATCH] BadRequest makes more sense than NotFound --- .../org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala b/integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala index 9a6e1e8181..fa91e017e1 100644 --- a/integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala +++ b/integration/src/test/scala/org/knora/webapi/it/v2/KnoraSipiIntegrationV2ITSpec.scala @@ -734,7 +734,7 @@ class KnoraSipiIntegrationV2ITSpec val request = Post(s"$baseApiUrl/v2/resources", jsonLdHttpEntity(jsonLdEntity)) ~> addAuthorization val response = singleAwaitingRequest(request) - assert(response.status == StatusCodes.NotFound) + assert(response.status == StatusCodes.BadRequest) } "create a resource of type ArchiveRepresentation with a Zip file" in {