Updates test to new production code

This commit is contained in:
BinaryAlley committed 2024-11-16 16:03:36 +02:00
1 parent df988b364c
commit 364d56fe56
1 file changed
+2 -2
@@ -99,9 +99,9 @@ public class CheckPathExistsEndpointTests : IClassFixture<AuthenticatedLuminaApi
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(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();