mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 21:11:10 +00:00
Updates test to new production code
This commit is contained in:
1 parent
df988b364c
commit
364d56fe56
1 file changed
+2
-2
+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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user