Closed frasermclean closed 2 months ago
Attention: Patch coverage is 87.73292%
with 79 lines
in your changes missing coverage. Please review.
Project coverage is 73.58%. Comparing base (
c0e81b8
) to head (43edba8
). Report is 40 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Solution test results
73 tests - 20 73 :white_check_mark: - 20 10s :stopwatch: -5s 6 suites + 1 0 :zzz: ± 0 6 files + 1 0 :x: ± 0
Results for commit 43edba81. ± Comparison against base commit c0e81b86.
This pull request removes 70 and adds 50 tests. Note that renamed tests count towards both.
``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_InvalidRole_ShouldReturnForbidden(request: AddAnimalRequest { BreedId = 19518bfd-d121-4d74-84d1-05bd3c9ee58c, DateOfBirth = 06/21/2022, Description = "Descriptionbc3ec498-2a4a-4ef4-acef-e7aad9f57f92", Name = "Name6e152195-7e9e-46d3-8532-1f68e11a4ed5", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-11-15T19:34:58.0186278, CreatedBy = b0c5697b-d9f8-4f92-b79c-c7093fef3183, Id = 645bb0e8-b7ff-4341-a546-c757f7eedb07, Name = "Nameb91d4433-2685-4453-80c8-3b73141d6ac0", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = 5f585407-ec51-41c1-bba6-6b86e7301bf1, DateOfBirth = 02/26/2022, Description = "Description79104a33-6a5e-4c9b-9568-828aff940bd0", Name = "Namec819c5f7-1a6f-4b88-aa2d-364e76ae0ee9", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = 76801e5f-7deb-4e38-9649-ee41dc0a15ef, DateOfBirth = 09/18/2021, Description = "Descriptionf6d6becd-a57a-402d-8b70-eb22a339311b", Name = "Nameae12e05a-6fd9-42ac-aecf-85179e5718b8", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2025-04-20T23:55:29.8655830, CreatedBy = b6ec15da-6b8c-4180-9727-4d3439fe8141, Id = 347903b7-6524-456c-b3d7-8eeeb3dcc6e2, Name = "Name02b31222-d0ae-48f7-abd8-76a948608daa", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = 7400f138-850e-414c-82ae-bb4f45255b8c }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = def6f2f6-64b0-41ad-a38b-c6d0162978b1 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2026-03-01T18:54:42.6159440, CreatedBy = 2a943a08-5a44-4e9c-a6cf-cf98e2f4d61a, Id = 01d6b6fe-6d8f-454a-8536-124268d88d21, Name = "Namece354333-a97b-4e9c-9c6a-f71fe1b70f87", ··· }, CreatedAt = 2024-10-12T21:35:39.3199090, CreatedBy = f7d2951a-8bef-4259-adf8-216a2feef35d, DateOfBirth = 08/23/2018, Description = "Descriptionedad597e-07aa-4269-96a0-5eaa3c3304c8", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = 22089f65-9bbd-4ba0-bd01-9e4aff083911 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-07-27T10:10:09.8294469, CreatedBy = f5cd46d5-0e52-46a3-b28b-40907eb79fdf, Id = be61ea9d-cc2f-476e-b249-bc0b2e7fca21, Name = "Name29ae01b9-5d30-4d8a-b8f7-772becefb2ab", ··· }, CreatedAt = 2024-03-02T16:04:34.4796527, CreatedBy = 3b620acc-6c9b-4827-8d84-b633c94469bf, DateOfBirth = 08/23/2016, Description = "Description36b82208-db7c-40d4-a335-a3f0057f4e1c", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 9fc9a887-f2f2-448e-8b61-adef6f70a504 }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: fc2f636c-07c2-43ce-9971-7a0bf1fce69e) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-04-07T04:53:15.2633862, CreatedBy = fb14ee4b-6c94-410e-a5d8-fd5a51935986, Id = bc5c291d-bf8f-454d-8d5c-9420eebee530, Name = "Name99f0f325-62b5-4685-96e9-12e3164812c3", ··· }, CreatedAt = 2024-12-14T17:17:54.3028263, CreatedBy = 02313e69-17bc-45f9-998d-e86adc55fb8c, DateOfBirth = 08/22/2023, Description = "Descriptionbfd251ab-a9ce-40d9-a878-d3def21c8a5e", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(items: [SearchAnimalsItem { BreedName = "BreedName8eabad9a-85c0-4882-bdea-6dd782671ecf", CreatedAt = 2026-03-16T00:46:27.2684751, DateOfBirth = 11/17/2019, Id = f0c0de8b-71af-4660-9878-e5ca35dfca2a, Image = AnimalImage { AnimalId = cd07e869-50a2-4d9a-82dc-aad83cc795e2, Description = "Descriptione32ee9ac-1151-48fc-95fb-d2149cfebaf6", Id = 9f145da9-348c-4b54-8177-e929caec3a12, IsProcessed = True, OriginalContentType = "OriginalContentType9ff56ef0-6dd2-48c8-b2fd-7c18563"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNamefa6fedf6-5651-4d16-8f3d-4deeb822d2d3", CreatedAt = 2026-03-16T00:42:21.8802119, DateOfBirth = 09/28/2021, Id = 6c1efeba-ef6a-401f-be9b-b3fe0c8f3de9, Image = AnimalImage { AnimalId = bd492d5f-5e55-4316-b0b8-89cfbf76508f, Description = "Descriptiond283a616-b697-4d86-8829-31814127aa38", Id = 9f3d3676-48cf-4496-9bc0-5aae53261c7f, IsProcessed = False, OriginalContentType = "OriginalContentType0717c608-96f8-4b49-a8a0-f5a9530"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNamefa741ac5-4a41-4939-9cce-b16fa9f00e45", CreatedAt = 2023-07-25T01:24:10.0845045, DateOfBirth = 04/25/2021, Id = 3734f5ad-a596-4f22-9ffd-763e1683635e, Image = AnimalImage { AnimalId = 96622299-85f4-4a83-83c7-e1f4b3316a5a, Description = "Description8099b515-a0ab-4412-abc1-9afa2e99bf5d", Id = 9a9801d6-8c7b-4102-94fe-206a2ea9439a, IsProcessed = True, OriginalContentType = "OriginalContentType72b260aa-126e-4ede-adbb-8854bfe"···, ··· }, ··· }]) … ``` ``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidRole_ShouldReturnForbidden Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalSlug_ShouldReturnOk Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalSlug_ShouldReturnNotFound Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk … ```:recycle: This comment has been updated with latest results.