From 364d56fe5675be0e6a62a91a2e2577cea3fa8d4d Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sat, 16 Nov 2024 16:03:36 +0200 Subject: [PATCH] Updates test to new production code --- .../FileSystemManagement/Path/CheckPathExistsEndpointTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Path/CheckPathExistsEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Path/CheckPathExistsEndpointTests.cs index 9846e247..b0d24390 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Path/CheckPathExistsEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/FileSystemManagement/Path/CheckPathExistsEndpointTests.cs @@ -99,9 +99,9 @@ public class CheckPathExistsEndpointTests : IClassFixture? problemDetails = JsonSerializer.Deserialize>(content, _jsonOptions); problemDetails.Should().NotBeNull(); problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity); - problemDetails["title"].GetString().Should().Be("Validation Error"); + problemDetails["title"].GetString().Should().Be("General.Validation"); problemDetails["instance"].GetString().Should().Be("/api/v1/path/check-path-exists"); - problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred."); + problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred"); problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2"); problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();