Skip to content

Add semantic release workflow #37

Add semantic release workflow

Add semantic release workflow #37

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / .NET test results failed Dec 9, 2023 in 1s

.NET test results ❌

Tests failed

❌ CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx

12 tests were completed in 23s with 5 passed, 7 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CrowdParlay.Users.IntegrationTests.Tests.AuthenticationControllerTests 1❌ 573ms
CrowdParlay.Users.IntegrationTests.Tests.HealthChecksTests 1✅ 183ms
CrowdParlay.Users.IntegrationTests.Tests.TraceIdMiddlewareTests 3✅ 631ms
CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests 1✅ 6❌ 175ms

❌ CrowdParlay.Users.IntegrationTests.Tests.AuthenticationControllerTests

❌ Exchange password with email returns token
	System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.

✅ CrowdParlay.Users.IntegrationTests.Tests.HealthChecksTests

✅ Get health returns healthy

✅ CrowdParlay.Users.IntegrationTests.Tests.TraceIdMiddlewareTests

✅ Register user returns trace ID on failure
✅ Register user returns trace ID on success
✅ Register users returns unique trace IDs

❌ CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests

❌ Get user by ID returns user
	Expected HttpStatusCode to be HttpStatusCode.OK {value: 200}, but found HttpStatusCode.BadRequest {value: 400}.
❌ Get user by username returns user
	Expected HttpStatusCode to be HttpStatusCode.OK {value: 200}, but found HttpStatusCode.BadRequest {value: 400}.
❌ Register user returns new user and publishes event
	Expected registerResponse to be CrowdParlay.Users.Application.Features.Users.Commands.Register+Response
	{
	    AvatarUrl = "https://example.com/avatar.jpg", 
	    DisplayName = "Степной ишак", 
	    Email = "[email protected]", 
	    Id = 00000000000000000000000000000000, 
	    Username = "undrcrxwnkkkj"
	}, but found CrowdParlay.Users.Application.Features.Users.Commands.Register+Response
	{
	    AvatarUrl = <null>, 
	    DisplayName = <null>, 
	    Email = <null>, 
	    Id = 00000000000000000000000000000000, 
	    Username = <null>
	}.
✅ Register user with invalid username returns validation failures
❌ Register users with look-alike usernames returns failure
	Expected HttpStatusCode to be HttpStatusCode.Conflict {value: 409}, but found HttpStatusCode.BadRequest {value: 400}.
❌ Update user changes user and publishes event
	System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
❌ Update user password changes user's password and publishes event
	System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.

Annotations

Check failure on line 19 in tests/CrowdParlay.Users.IntegrationTests/Extensions/HttpClientExtensions.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.AuthenticationControllerTests ► Exchange password with email returns token

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
Raw output
System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
   at System.Text.Json.JsonElement.GetProperty(String propertyName)
   at CrowdParlay.Users.IntegrationTests.Extensions.HttpClientExtensions.AcquireAccessToken(HttpClient client, String username, String password) in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Extensions/HttpClientExtensions.cs:line 19
   at CrowdParlay.Users.IntegrationTests.Tests.AuthenticationControllerTests.Exchange_Password_Positive() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/AuthenticationControllerTests.cs:line 22
--- End of stack trace from previous location ---

Check failure on line 82 in tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests ► Get user by ID returns user

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  Expected HttpStatusCode to be HttpStatusCode.OK {value: 200}, but found HttpStatusCode.BadRequest {value: 400}.
Raw output
Expected HttpStatusCode to be HttpStatusCode.OK {value: 200}, but found HttpStatusCode.BadRequest {value: 400}.
   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.Users.IntegrationTests.Tests.UsersControllerTests.GetById_Positive() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs:line 82
--- End of stack trace from previous location ---

Check failure on line 100 in tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests ► Get user by username returns user

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  Expected HttpStatusCode to be HttpStatusCode.OK {value: 200}, but found HttpStatusCode.BadRequest {value: 400}.
Raw output
Expected HttpStatusCode to be HttpStatusCode.OK {value: 200}, but found HttpStatusCode.BadRequest {value: 400}.
   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.Users.IntegrationTests.Tests.UsersControllerTests.GetByUsername_Positive() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs:line 100
--- End of stack trace from previous location ---

Check failure on line 35 in tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests ► Register user returns new user and publishes event

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  Expected registerResponse to be CrowdParlay.Users.Application.Features.Users.Commands.Register+Response
  {
      AvatarUrl = "https://example.com/avatar.jpg", 
      DisplayName = "Степной ишак", 
      Email = "[email protected]", 
      Id = 00000000000000000000000000000000, 
      Username = "undrcrxwnkkkj"
  }, but found CrowdParlay.Users.Application.Features.Users.Commands.Register+Response
  {
      AvatarUrl = <null>, 
      DisplayName = <null>, 
      Email = <null>, 
      Id = 00000000000000000000000000000000, 
      Username = <null>
  }.
Raw output
Expected registerResponse to be CrowdParlay.Users.Application.Features.Users.Commands.Register+Response
{
    AvatarUrl = "https://example.com/avatar.jpg", 
    DisplayName = "Степной ишак", 
    Email = "[email protected]", 
    Id = 00000000000000000000000000000000, 
    Username = "undrcrxwnkkkj"
}, but found CrowdParlay.Users.Application.Features.Users.Commands.Register+Response
{
    AvatarUrl = <null>, 
    DisplayName = <null>, 
    Email = <null>, 
    Id = 00000000000000000000000000000000, 
    Username = <null>
}.
   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.ObjectAssertions`2.Be(TSubject expected, String because, Object[] becauseArgs)
   at CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests.Register_Positive() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs:line 35
--- End of stack trace from previous location ---

Check failure on line 59 in tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests ► Register users with look-alike usernames returns failure

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  Expected HttpStatusCode to be HttpStatusCode.Conflict {value: 409}, but found HttpStatusCode.BadRequest {value: 400}.
Raw output
Expected HttpStatusCode to be HttpStatusCode.Conflict {value: 409}, but found HttpStatusCode.BadRequest {value: 400}.
   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.Users.IntegrationTests.Tests.UsersControllerTests.Register_Negative() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs:line 59
--- End of stack trace from previous location ---

Check failure on line 19 in tests/CrowdParlay.Users.IntegrationTests/Extensions/HttpClientExtensions.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests ► Update user changes user and publishes event

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
Raw output
System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
   at System.Text.Json.JsonElement.GetProperty(String propertyName)
   at CrowdParlay.Users.IntegrationTests.Extensions.HttpClientExtensions.AcquireAccessToken(HttpClient client, String username, String password) in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Extensions/HttpClientExtensions.cs:line 19
   at CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests.Update_Positive() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs:line 126
--- End of stack trace from previous location ---

Check failure on line 19 in tests/CrowdParlay.Users.IntegrationTests/Extensions/HttpClientExtensions.cs

See this annotation in the file changed.

@github-actions github-actions / .NET test results

CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests ► Update user password changes user's password and publishes event

Failed test found in:
  CrowdParlay.Users.IntegrationTests/TestResults/_fv-az914-868_2023-12-09_12_36_29.trx
Error:
  System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
Raw output
System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
   at System.Text.Json.JsonElement.GetProperty(String propertyName)
   at CrowdParlay.Users.IntegrationTests.Extensions.HttpClientExtensions.AcquireAccessToken(HttpClient client, String username, String password) in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Extensions/HttpClientExtensions.cs:line 19
   at CrowdParlay.Users.IntegrationTests.Tests.UsersControllerTests.UpdatePassword_Positive() in /home/runner/work/users/users/tests/CrowdParlay.Users.IntegrationTests/Tests/UsersControllerTests.cs:line 179
--- End of stack trace from previous location ---