fix: include author to response when creating reply #25
GitHub Actions / .NET test results
failed
Feb 6, 2024 in 0s
3 passed, 1 failed and 0 skipped
❌ tests/CrowdParlay.Social.IntegrationTests/TestResults/_fv-az1249-403_2024-02-06_16_56_22.trx
4 tests were completed in 37s with 3 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
CrowdParlay.Social.IntegrationTests.Tests.AuthorsControllerTests | 1✅ | 993ms | ||
CrowdParlay.Social.IntegrationTests.Tests.CommentsControllerTests | 1✅ | 1❌ | 2s | |
CrowdParlay.Social.IntegrationTests.Tests.DiscussionsControllerTests | 1✅ | 2s |
✅ CrowdParlay.Social.IntegrationTests.Tests.AuthorsControllerTests
✅ User created event creates author
❌ CrowdParlay.Social.IntegrationTests.Tests.CommentsControllerTests
❌ Reply to comment creates reply
Expected HttpStatusCode to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.InternalServerError {value: 500}.
✅ Search comments returns comments
✅ CrowdParlay.Social.IntegrationTests.Tests.DiscussionsControllerTests
✅ Get discussion by ID returns discussion with author
Annotations
github-actions / .NET test results
CrowdParlay.Social.IntegrationTests.Tests.CommentsControllerTests ► Reply to comment creates reply
Failed test found in:
tests/CrowdParlay.Social.IntegrationTests/TestResults/_fv-az1249-403_2024-02-06_16_56_22.trx
Error:
Expected HttpStatusCode to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.InternalServerError {value: 500}.
Raw output
Expected HttpStatusCode to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.InternalServerError {value: 500}.
at FluentAssertions.Execution.XUnit2TestFramework.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.HttpResponseMessageAssertions`1.HaveStatusCode(HttpStatusCode expected, String because, Object[] becauseArgs)
at CrowdParlay.Social.IntegrationTests.Tests.CommentsControllerTests.ReplyToComment_Positive() in /home/runner/work/social/social/tests/CrowdParlay.Social.IntegrationTests/Tests/CommentsControllerTests.cs:line 119
--- End of stack trace from previous location ---
Loading