Skip to content

Do not query total count when no pagination #1674

Do not query total count when no pagination

Do not query total count when no pagination #1674

Re-run triggered December 23, 2025 16:25
Status Failure
Total duration 33m 59s
Artifacts 3

build.yml

on: pull_request
Matrix: build-and-test
Matrix: cleanup-code
Matrix: inspect-code
publish
0s
publish
Fit to window
Zoom out
Zoom in

Annotations

30 errors
JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_secondary_resource_from_other_parent_tenant (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs#L197
Expected the enum to be HttpStatusCode.NotFound {value: 404} because response body returned was: { "links": { "self": "/nld/products/9/shop" }, "errors": [ { "id": "3d8a16cc-5feb-4c24-9f63-124c67dcdb81", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_secondary_resource_from_other_parent_tenant() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs:line 210 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_ToOne_relationship_for_other_parent_tenant (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs#L257
Expected the enum to be HttpStatusCode.NotFound {value: 404} because response body returned was: { "links": { "self": "/nld/products/7/relationships/shop", "related": "/nld/products/7/shop" }, "errors": [ { "id": "2bfe12dc-cfe9-43da-821f-9d1582ebbd62", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_ToOne_relationship_for_other_parent_tenant() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs:line 270 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_secondary_resource_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs#L148
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/photos/019b4c17-7883-776f-b5b6-18a76fe7c06e/album" }, "errors": [ { "id": "2ef37f93-e09d-4bfd-a1a4-0694ca438816", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_secondary_resource_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs:line 160 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_ToOne_relationship_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs#L242
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/photos/019b4c17-6d78-7c65-a568-6e2aa86c9c40/relationships/album", "related": "/photos/019b4c17-6d78-7c65-a568-6e2aa86c9c40/album" }, "errors": [ { "id": "4224b96f-3acd-4676-899a-99b6992cfbf9", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_ToOne_relationship_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs:line 254 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_secondary_resource_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs#L148
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/photos/019b4c17-3da2-7dca-9996-462c11897e09/album" }, "errors": [ { "id": "031285c5-8663-4c89-9e7e-65a145597ae6", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_secondary_resource_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs:line 160 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_ToOne_relationship_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs#L242
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/photos/019b4c17-3490-75a4-a482-2d5f2d27bf9a/relationships/album", "related": "/photos/019b4c17-3490-75a4-a482-2d5f2d27bf9a/album" }, "errors": [ { "id": "a96611f9-de02-48bd-8e10-338869b01e65", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_ToOne_relationship_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs:line 254 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_secondary_resource_from_other_parent_tenant (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs#L197
Expected the enum to be HttpStatusCode.NotFound {value: 404} because response body returned was: { "links": { "self": "/nld/products/9/shop" }, "errors": [ { "id": "edc886e2-7ccc-49f7-8a77-3dc0425cafa5", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_secondary_resource_from_other_parent_tenant() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs:line 210 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_ToOne_relationship_for_other_parent_tenant (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs#L257
Expected the enum to be HttpStatusCode.NotFound {value: 404} because response body returned was: { "links": { "self": "/nld/products/7/relationships/shop", "related": "/nld/products/7/shop" }, "errors": [ { "id": "0d2daf72-b3c7-42e7-8f5b-521aba4daf6a", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_ToOne_relationship_for_other_parent_tenant() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs:line 270 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.AbsoluteLinksWithNamespaceTests.Get_secondary_resource_returns_absolute_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/AbsoluteLinksWithNamespaceTests.cs#L148
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "http://localhost/api/photos/019b4c17-0db1-7eb3-a7ef-f1cc657f5112/album" }, "errors": [ { "id": "687b8d63-9459-4250-88fa-f77de3981ca5", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.AbsoluteLinksWithNamespaceTests.Get_secondary_resource_returns_absolute_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/AbsoluteLinksWithNamespaceTests.cs:line 160 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.AbsoluteLinksWithNamespaceTests.Get_ToOne_relationship_returns_absolute_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/AbsoluteLinksWithNamespaceTests.cs#L242
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "http://localhost/api/photos/019b4c17-081b-7a74-9416-76fd425aaf7f/relationships/album", "related": "http://localhost/api/photos/019b4c17-081b-7a74-9416-76fd425aaf7f/album" }, "errors": [ { "id": "ff64c764-30b0-4df2-86f8-6fe81dcb07c7", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.AbsoluteLinksWithNamespaceTests.Get_ToOne_relationship_returns_absolute_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/AbsoluteLinksWithNamespaceTests.cs:line 254 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.No_total_when_resource_definition_has_filter_on_inverse_ManyToOne_at_relationship_endpoint (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs#L512
Expected field root[0].Item1 to be JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Star, but found JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet. Expected field root[0].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8}. Expected field root[1].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. Expected field root[2].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4}. Expected field root[3].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16}. Expected field root[4].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1}. Expected field root[5].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16}. Expected field root[6].Item1 to be JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, but found JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Star. Expected field root[6].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Always be strict about the collection order - Without automatic conversion. /n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context) at FluentAssertions.Execution.AssertionScope.Dispose() at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Collections.GenericCollectionAssertions`3.BeEquivalentTo[TExpectation](IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.No_total_when_resource_definition_has_filter_on_inverse_ManyToOne_at_relationship_endpoint() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs:line 539 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Include_from_resource_definition_is_blocked (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs#L50
Expected root to be a collection with 6 item(s), but { { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1} } } contains 1 item(s) less than { { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} }, { Item1 = JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Planet, Item2 = ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1} } }. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Always be strict about the collection order - Without automatic conversion. /n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context) at FluentAssertions.Execution.AssertionScope.Dispose() at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Collections.GenericCollectionAssertions`3.BeEquivalentTo[TExpectation](IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Include_from_resource_definition_is_blocked() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs:line 79 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Queryable_parameter_handler_from_resource_definition_is_applied (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs#L915
Expected field root[2].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8}. Expected field root[3].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. Expected field root[4].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4}. Expected field root[5].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16}. Expected field root[6].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1}. Expected field root[7].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Always be strict about the collection order - Without automatic conversion. /n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context) at FluentAssertions.Execution.AssertionScope.Dispose() at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Collections.GenericCollectionAssertions`3.BeEquivalentTo[TExpectation](IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Queryable_parameter_handler_from_resource_definition_is_applied() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs:line 943 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Page_size_from_resource_definition_is_applied (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs#L712
Expected field root[0].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8}. Expected field root[1].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. Expected field root[2].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4}. Expected field root[3].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16}. Expected field root[4].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1}. Expected field root[5].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Always be strict about the collection order - Without automatic conversion. /n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context) at FluentAssertions.Execution.AssertionScope.Dispose() at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Collections.GenericCollectionAssertions`3.BeEquivalentTo[TExpectation](IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Page_size_from_resource_definition_is_applied() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs:line 733 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Has_total_when_resource_definition_has_filter_on_inverse_ManyToMany_at_secondary_endpoint (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs#L462
Expected field root[0].Item1 to be JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Constellation, but found JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Star. Expected field root[0].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8}. Expected field root[2].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyPagination {value: 8} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4}. Expected field root[3].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2} by value, but found ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16}. Expected field root[4].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySort {value: 4} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1}. Expected field root[5].Item1 to be JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Star, but found JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.Constellation. Expected field root[5].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplySparseFieldSet {value: 16} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. Expected field root[6].Item2 to equal ResourceDefinitionExtensibilityPoints.OnApplyIncludes {value: 1} by value, but found ResourceDefinitionExtensibilityPoints.OnApplyFilter {value: 2}. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Always be strict about the collection order - Without automatic conversion. /n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context) at FluentAssertions.Execution.AssertionScope.Dispose() at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context) at FluentAssertions.Collections.GenericCollectionAssertions`3.BeEquivalentTo[TExpectation](IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading.ResourceDefinitionReadTests.Has_total_when_resource_definition_has_filter_on_inverse_ManyToMany_at_secondary_endpoint() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs:line 494 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_secondary_resource_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs#L148
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/photos/019b4c19-f612-7e56-892d-e0bf33541b36/album" }, "errors": [ { "id": "999bf26b-0d1b-4a2a-8d01-2cd8e0a075ce", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_secondary_resource_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs:line 160 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_ToOne_relationship_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs#L242
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/photos/019b4c19-f34a-7abc-bc7d-9795dca75ecf/relationships/album", "related": "/photos/019b4c19-f34a-7abc-bc7d-9795dca75ecf/album" }, "errors": [ { "id": "6d481675-c97b-4ece-9b50-af0440302266", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithoutNamespaceTests.Get_ToOne_relationship_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithoutNamespaceTests.cs:line 254 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Pagination.PaginationWithTotalCountTests.Can_paginate_in_secondary_resources_without_inverse_relationship (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Pagination/PaginationWithTotalCountTests.cs#L137
Expected string to be <null>, but found "http://localhost/webAccounts/8/loginAttempts?page%5Bsize%5D=1"./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeNull(String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Pagination.PaginationWithTotalCountTests.Can_paginate_in_secondary_resources_without_inverse_relationship() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Pagination/PaginationWithTotalCountTests.cs:line 160 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Pagination.PaginationWithTotalCountTests.Can_paginate_OneToMany_relationship_at_relationship_endpoint_without_inverse_relationship (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Pagination/PaginationWithTotalCountTests.cs#L302
Expected string to be <null>, but found "http://localhost/webAccounts/7/relationships/loginAttempts?page%5Bsize%5D=1"./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeNull(String because, Object[] becauseArgs) at JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Pagination.PaginationWithTotalCountTests.Can_paginate_OneToMany_relationship_at_relationship_endpoint_without_inverse_relationship() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Pagination/PaginationWithTotalCountTests.cs:line 327 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Pagination.PaginationWithTotalCountTests.Can_paginate_in_scope_of_OneToMany_relationship_at_secondary_endpoint (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Pagination/PaginationWithTotalCountTests.cs#L236
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "http://localhost/blogs/1/owner?include=posts&page[number]=posts:2&page[size]=posts:1" }, "errors": [ { "id": "6adf701d-1071-4e85-85ff-403534ded75c", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ], "included": [] }, but found HttpStatusCode.InternalServerError {value: 500}./n at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Pagination.PaginationWithTotalCountTests.Can_paginate_in_scope_of_OneToMany_relationship_at_secondary_endpoint() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Pagination/PaginationWithTotalCountTests.cs:line 249 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Can_get_ToOne_relationship (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs#L564
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "http://localhost/meetingAttendees/019b4c21-202e-7a9d-909b-fb99808bea15/relationships/meeting", "related": "http://localhost/meetingAttendees/019b4c21-202e-7a9d-909b-fb99808bea15/meeting" }, "errors": [ { "id": "48daf417-0c15-499e-a3e8-0d4370601eb9", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'." } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Can_get_ToOne_relationship() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs:line 576 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Can_get_secondary_resource (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs#L385
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "http://localhost/meetingAttendees/019b4c21-200e-7537-bc12-49aeff05f4ae/meeting" }, "errors": [ { "id": "88647aec-bde4-4d55-a931-af96fbc2a4b4", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'." } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Can_get_secondary_resource() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs:line 397 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Can_get_unknown_secondary_resource (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs#L439
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "http://localhost/meetingAttendees/019b4c21-1cba-73d2-b6e2-10ba4fd67614/meeting" }, "errors": [ { "id": "e610c4ae-c636-449a-8ffc-a028c5fc4c61", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'." } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Can_get_unknown_secondary_resource() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs:line 450 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Serialization.SerializationTests.Includes_version_at_resource_endpoint (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationTests.cs#L827
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "jsonapi": { "version": "1.1" }, "links": { "self": "http://localhost/meetingAttendees/019b4c21-18dd-7af9-bb55-2e6799abe77d/meeting" }, "errors": [ { "id": "1938038c-9615-4092-87f8-e362dafa1e85", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'." } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpRespon Stack Trace:
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_ToOne_relationship_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs#L242
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/api/photos/019b4c21-16bf-7a39-a26f-572da40d74ed/relationships/album", "related": "/api/photos/019b4c21-16bf-7a39-a26f-572da40d74ed/album" }, "errors": [ { "id": "efc6907c-4f8d-4d70-9bcf-084b33d1df1d", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_ToOne_relationship_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs:line 254 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_secondary_resource_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs#L148
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/api/photos/019b4c21-15dc-7b15-ab9c-98f57d370c3c/album" }, "errors": [ { "id": "de3ebe6c-4f86-43bc-9179-4f103302035a", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_secondary_resource_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs:line 160 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_secondary_resource_from_other_parent_tenant (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs#L197
Expected the enum to be HttpStatusCode.NotFound {value: 404} because response body returned was: { "links": { "self": "/nld/products/9/shop" }, "errors": [ { "id": "9720931b-c5b8-4486-a4da-f9e4cbfaaaf5", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_secondary_resource_from_other_parent_tenant() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs:line 210 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_ToOne_relationship_for_other_parent_tenant (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs#L257
Expected the enum to be HttpStatusCode.NotFound {value: 404} because response body returned was: { "links": { "self": "/nld/products/7/relationships/shop", "related": "/nld/products/7/shop" }, "errors": [ { "id": "51f11886-a692-4c34-8019-3b5c2f3cc23d", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy.MultiTenancyTests.Cannot_get_ToOne_relationship_for_other_parent_tenant() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyTests.cs:line 270 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_ToOne_relationship_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs#L242
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/api/photos/019b4c20-a43a-7408-a3db-5ecf0b52c4cd/relationships/album", "related": "/api/photos/019b4c20-a43a-7408-a3db-5ecf0b52c4cd/album" }, "errors": [ { "id": "7672652e-af80-4a04-b09e-9dd08bbeb130", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 174", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 183", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 76", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_ToOne_relationship_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs:line 254 --- End of stack trace from previous location ---
JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_secondary_resource_returns_relative_links (.NETCoreApp: /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs#L148
Expected the enum to be HttpStatusCode.OK {value: 200} because response body returned was: { "links": { "self": "/api/photos/019b4c20-a1e2-7427-b0da-814b2ab4f605/album" }, "errors": [ { "id": "28e6a81b-de29-4508-8adf-c4d084f9739c", "status": "500", "title": "An unhandled error occurred while processing this request.", "detail": "Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", "meta": { "stackTrace": [ "System.InvalidCastException: Unable to cast object of type 'JsonApiDotNetCore.Resources.Annotations.HasOneAttribute' to type 'JsonApiDotNetCore.Resources.Annotations.HasManyAttribute'.", " at async Task<object> JsonApiDotNetCore.Services.JsonApiResourceService<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Services/JsonApiResourceService.cs:line 127", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.BaseJsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs:line 153", " at async Task<IActionResult> JsonApiDotNetCore.Controllers.JsonApiController<TResource, TId>.GetSecondaryAsync(TId id, string relationshipName, CancellationToken cancellationToken) in /_/src/JsonApiDotNetCore/Controllers/JsonApiController.cs:line 67", " at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Awaited(?)", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?)", " at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)", " at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()", " at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?)" ] } } ] }, but found HttpStatusCode.InternalServerError {value: 500}. at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Primitives.EnumAssertions`2.Be(TEnum expected, String because, Object[] becauseArgs) at TestBuildingBlocks.HttpResponseMessageExtensions.ShouldHaveStatusCode(HttpResponseMessage source, HttpStatusCode statusCode) in /_/test/TestBuildingBlocks/HttpResponseMessageExtensions.cs:line 18 at JsonApiDotNetCoreTests.IntegrationTests.Links.RelativeLinksWithNamespaceTests.Get_secondary_resource_returns_relative_links() in /_/test/JsonApiDotNetCoreTests/IntegrationTests/Links/RelativeLinksWithNamespaceTests.cs:line 160 --- End of stack trace from previous location ---

Artifacts

Produced during runtime
Name Size Digest
InspectCode-macos-latest
398 Bytes
sha256:320f7c33831e8dddc08b0c177649fe81f86b9f56323e07402be34a1220a979be
InspectCode-ubuntu-latest
398 Bytes
sha256:c76ce7b53d83eb212f374bf158d414c9c5c55cba7f04282d1a2e71458896b93f
InspectCode-windows-latest
400 Bytes
sha256:bdbd97e0cde9d88e9cf86f318772aa4011262ec55ba85704293931590f81bbe1