Skip to content

docs: specify response types of all endpoints #73

docs: specify response types of all endpoints

docs: specify response types of all endpoints #73

GitHub Actions / .NET test results failed Feb 10, 2024 in 1s

3 passed, 1 failed and 0 skipped

Tests failed

❌ tests/CrowdParlay.Social.IntegrationTests/TestResults/_fv-az1247-367_2024-02-10_14_20_32.trx

4 tests were completed in 39s with 3 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CrowdParlay.Social.IntegrationTests.Tests.AuthorsControllerTests 1✅ 1s
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

Check failure on line 119 in tests/CrowdParlay.Social.IntegrationTests/Tests/CommentsControllerTests.cs

See this annotation in the file changed.

@github-actions 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-az1247-367_2024-02-10_14_20_32.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 ---