Skip to content

refactor: ♻️ refactor problem details exception handler #114

refactor: ♻️ refactor problem details exception handler

refactor: ♻️ refactor problem details exception handler #114

Triggered via push September 10, 2024 11:06
Status Failure
Total duration 27m 6s
Artifacts

customers.yml

on: push
pre-check
4s
pre-check
call-build-test-push  /  build-test-push
call-build-test-push / build-test-push
call-build-test  /  build-test
26m 41s
call-build-test / build-test
workflow-info
0s
workflow-info
call-release  /  Release
call-release / Release
call-release  /  Release Info
call-release / Release Info
call-deploy  /  deploy
call-deploy / deploy
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests ► can returns valid response using valid id and auth credentials: tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/Customers/Features/GettingCustomerById/v1/GetCustomerByIdTests.cs#L57
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/TestResults/test-results.trx Error: Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : Expected response to satisfy one or more model assertions, but it wasn't: - expectation has property x.Customer.FirstName that the other object does not have. - expectation has property x.Customer.LastName that the other object does not have. - expectation has property x.Customer.FullName that the other object does not have. - expectation has property x.Customer.Created that the other object does not have. The HTTP response was: HTTP/1.1 200 OK api-supported-versions: 1.0 Content-Type: application/json; charset=utf-8 Content-Length: 423 { "customer": { "id": "f1115727-248e-e04e-56ce-14071e90bb61", "customerId": 1, "identityId": "7f1652f9-bdb9-3228-790c-c290b10c1fc3", "email": "Emma_Stark16@gmail.com", "name": "Larue Senger", "country": "Czech Republic", "city": "New Astrid", "detailAddress": "4522 Kreiger Junctions, Raphaellemouth, Spain", "nationality": "Monaco", "birthDate": "2024-09-10T11:11:07.41\u002B00:00", "phoneNumber": "(\u002B15)6422068697", "createdAt": "0001-01-01T00:00:00" } } The originating HTTP request was: GET http://localhost/api/v1/customers/f1115727-248e-e04e-56ce-14071e90bb61 HTTP 1.1 Accept: application/json Authorization: FakeBearer *** Content-Length: 0
FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests ► must returns bad request status code with invalid: tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/Customers/Features/GettingCustomerById/v1/GetCustomerByIdTests.cs#L140
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/TestResults/test-results.trx Error: Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : Expected response to satisfy one or more model assertions, but it wasn't: - expected pr.Title to be "ValidationException" with a length of 19, but "Validation Exception" has a length of 20, differs near " Ex" (index 10). - expected pr.Type to be "https://tools.ietf.org/html/rfc7231#section-6.5.1" with a length of 49, but "https://tools.ietf.org/html/rfc9110#section-15.5.1" has a length of 50, differs near "911" (index 31). The HTTP response was: HTTP/1.1 400 BadRequest api-supported-versions: 1.0 Content-Type: application/problem+json Content-Length: 1068 { "type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "Validation Exception", "status": 400, "detail": "\u0027Id\u0027 must not be empty.", "instance": "GET /api/v1/customers/00000000-0000-0000-0000-000000000000", "exception": { "details": "BuildingBlocks.Core.Exception.Types.ValidationException", "headers": { "Accept": [ "application/json" ], "Authorization": [ "FakeBearer ***" ], "Host": [ "localhost" ] }, "path": "/api/v1/customers/00000000-0000-0000-0000-000000000000", "endpoint": "Get customer by id", "routeValues": { "id": "00000000-0000-0000-0000-000000000000", "version": "1" } } } The originating HTTP request was: GET http://localhost/api/v1/customers/00000000-0000-0000-0000-000000000000 HTTP 1.1 Accept: application/json Authorization: FakeBearer *** Content-Length: 0
FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests ► must returns not found status code when customer not exists: tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/Customers/Features/GettingCustomerById/v1/GetCustomerByIdTests.cs#L108
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/TestResults/test-results.trx Error: Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : Expected response to satisfy one or more model assertions, but it wasn't: - expected pr.Title to be "CustomerNotFoundException" with a length of 25, but "Customer Not Found Exception" has a length of 28, differs near " No" (index 8). - expected pr.Type to be "https://tools.ietf.org/html/rfc7231#section-6.5.4" with a length of 49, but "https://tools.ietf.org/html/rfc9110#section-15.5.5" has a length of 50, differs near "911" (index 31). The HTTP response was: HTTP/1.1 404 NotFound api-supported-versions: 1.0 Content-Type: application/problem+json Content-Length: 1154 { "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5", "title": "Customer Not Found Exception", "status": 404, "detail": "Customer with id \u00274b0de79a-6d63-4466-a860-ed8367a0396c\u0027 not found.", "instance": "GET /api/v1/customers/4b0de79a-6d63-4466-a860-ed8367a0396c", "exception": { "details": "FoodDelivery.Services.Customers.Customers.Exceptions.Application.CustomerNotFoundException", "headers": { "Accept": [ "application/json" ], "Authorization": [ "FakeBearer ***" ], "Host": [ "localhost" ] }, "path": "/api/v1/customers/4b0de79a-6d63-4466-a860-ed8367a0396c", "endpoint": "Get customer by id", "routeValues": { "id": "4b0de79a-6d63-4466-a860-ed8367a0396c", "version": "1" } } } The originating HTTP request was: GET http://localhost/api/v1/customers/4b0de79a-6d63-4466-a860-ed8367a0396c HTTP 1.1 Accept: application/json Authorization: FakeBearer *** Content-Length: 0
FoodDelivery.Services.Customers.IntegrationTests.RestockSubscriptions.Features.CreatingRestockSubscription.v1.CreateRestockSubscriptionTests ► can create new customer restock subscription in postgres db: tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs#L321
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx Error: Microsoft.EntityFrameworkCore.DbUpdateException : An error occurred while saving the entity changes. See the inner exception for details. ---- Npgsql.PostgresException : 22001: value too long for type character varying(50)
FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests ► should create new customer in postgres write db when after consuming message: tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs#L422
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx Error: System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.) ---- System.TimeoutException : Condition not met for the test in the 'True' second. ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests ► should create new mongo customer read model in the mongodb after consuming message: tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs#L422
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx Error: System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.) ---- System.TimeoutException : Condition not met for the test in the 'True' second. ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests ► should save customer created integration event in the outbox after consuming message: tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs#L422
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx Error: System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.) ---- System.TimeoutException : Condition not met for the test in the 'True' second. ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests ► should save mongo customer read model in internal persistence message after consuming message: tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs#L422
Failed test found in: tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx Error: System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.) ---- System.TimeoutException : Condition not met for the test in the 'True' second. ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
call-build-test / build-test
Failed tests were found and 'fail-on-error' option is set to true
call-build-test / build-test
This action finished successfully, but test results have status failure.
pre-check
The following actions use a deprecated Node.js version and will be forced to run on node20: webiny/action-conventional-commits@v1.1.0. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Messaging/IIntegrationEventHandler.cs#L5
Rename type name IIntegrationEventHandler so that it does not end in 'EventHandler' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Events/IDomainEventHandler.cs#L3
Rename type name IDomainEventHandler so that it does not end in 'EventHandler' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Events/IEventHandler.cs#L5
Rename type name IEventHandler so that it does not end in 'EventHandler' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Events/Internal/IDomainNotificationEventHandler.cs#L3
Rename type name IDomainNotificationEventHandler so that it does not end in 'EventHandler' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Web/Module/IModuleConfiguration.cs#L4
Rename namespace BuildingBlocks.Abstractions.Web.Module so that it no longer conflicts with the reserved language keyword 'Module'. Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Web/Storage/IRequestStorage.cs#L8
Rename virtual/interface member IRequestStorage.Get<T>(string) so that it no longer conflicts with the reserved language keyword 'Get'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Web/Storage/IRequestStorage.cs#L5
Rename virtual/interface member IRequestStorage.Set<T>(string, T) so that it no longer conflicts with the reserved language keyword 'Set'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
call-build-test / build-test: src/BuildingBlocks/BuildingBlocks.Abstractions/Core/IIdGenerator.cs#L5
Rename virtual/interface member IIdGenerator<TId>.New() so that it no longer conflicts with the reserved language keyword 'New'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)