Closed frasermclean closed 3 months ago
Attention: Patch coverage is 34.88372%
with 140 lines
in your changes missing coverage. Please review.
Project coverage is 75.57%. Comparing base (
41de3b6
) to head (ab7413a
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Solution test results
87 tests +6 87 :white_check_mark: +6 18s :stopwatch: +2s 5 suites ±0 0 :zzz: ±0 5 files ±0 0 :x: ±0
Results for commit ab7413ad. ± Comparison against base commit 41de3b61.
This pull request removes 29 and adds 35 tests. Note that renamed tests count towards both.
``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = 70c74cc6-28bb-43f5-91f8-0633a6ee4f6c, DateOfBirth = 01/19/2022, Description = "Description3c1c4c5b-596d-4f63-b07e-12030c557c08", Name = "Namec3a7b643-da87-438f-a69e-411277b47b9b", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = ad853ffd-0468-4b08-97a4-8b8516bd678a, DateOfBirth = 02/23/2023, Description = "Description59356433-a770-4d22-90c7-a4bbbf91e27c", Name = "Nameed7feb37-2baf-4fc4-a02c-b66b45c57f8c", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-01-15T12:01:47.2382926, CreatedBy = 4304e7da-455a-4f96-ad6b-1b1d540f3256, Id = 51a3fa13-a130-47ba-a743-5b747937d64a, Name = "Name27d46869-3926-40a6-8752-a831844ce09e", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = a7be4848-e54a-4839-8a4b-015035c3aa5a }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = df0bb5e0-1e5c-4385-a2de-bd9d8f2f7f4e }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2022-08-21T15:08:24.1862149, CreatedBy = e7e0e6ea-2691-4581-8047-f4c060eaa4a4, Id = 0a623500-ea2d-404e-a0bf-8458a2ef0d6a, Name = "Namec40375f6-3dfa-466a-8c13-caa58f996d16", ··· }, CreatedAt = 2025-01-25T00:59:27.4930591, CreatedBy = 9cc36e54-eb01-4db6-9d28-7531d14d2509, DateOfBirth = 07/20/2021, Description = "Description5b73b776-b38e-4985-827d-456128174a5d", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = d4587db0-099d-434e-a695-70c8ccb37cae }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2023-10-04T00:01:22.3764856, CreatedBy = ca54783e-aade-4f19-b918-2101e7b136e7, Id = d403e9b2-7114-4777-9613-9354d9a95e72, Name = "Name15f3ef77-ba7e-4c0f-98fe-2616664a77b9", ··· }, CreatedAt = 2024-11-24T20:24:46.9277297, CreatedBy = fd4dbdfc-0cb1-4a79-b2f4-e762ca09f7e4, DateOfBirth = 07/22/2015, Description = "Description02d45925-5089-48c5-aeb8-e59b6aa4b96a", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = b0949bd8-d41b-4691-901f-ccf843f64077 }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 8600c66a-db26-4061-8bd6-24dbea45a211) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2026-02-07T14:19:24.8783913, CreatedBy = 0c17a1ba-6855-4948-a892-f2c2830c46ca, Id = ffeb0266-1681-4953-a31b-a302711f1769, Name = "Namebe9c6992-87ae-4641-963f-d4b060ee4bfc", ··· }, CreatedAt = 2023-06-08T02:23:36.2865051, CreatedBy = 945fc83a-b220-4da7-abb8-142208c26774, DateOfBirth = 07/20/2022, Description = "Description1db140d2-8609-4781-bc55-a28a94cf857e", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(request: SearchAnimalsRequest { BreedId = 3c3118df-00b6-4acf-80d9-8bb78bf437b7, Limit = 251, Name = "Name9067caaa-4b6f-4299-b140-2b5824176200", Sex = Unknown, SpeciesId = fa01799a-3d1c-4a98-baeb-14e3ba5390cd }, matchesToReturn: [AnimalMatch { BreedName = "BreedName2832e8ae-75dc-4508-91a0-4fbc14f53ebb", CreatedAt = 2026-07-11T07:15:52.7665078, DateOfBirth = 09/21/2019, Id = 369cae84-f158-4f02-8e26-efc5eb9e5d73, Image = AnimalImageResponse { Description = "Description81b00cb1-dbd4-4ff3-90b3-f65c0b257deb", FullSizeUrl = "FullSizeUrlf54c9c0e-a362-4779-8f64-cbcacf890380", Id = 392505b1-1ed8-4cf1-b5c4-6f133027c876, IsProcessed = True, PreviewUrl = "PreviewUrl7e3b2016-b024-4751-a0db-1dfd31403308", ··· }, ··· }, AnimalMatch { BreedName = "BreedName4ecd9ebb-6291-4517-af2c-d130134f191b", CreatedAt = 2023-05-05T12:10:05.8608797, DateOfBirth = 05/04/2022, Id = 9f3a13a2-9825-4e92-a2f5-c1581a730e35, Image = AnimalImageResponse { Description = "Description62621bfd-e8fa-4a9d-9401-d92c25b644da", FullSizeUrl = "FullSizeUrlddb3064d-65ab-4dbc-b0d4-e0383ae7b6b9", Id = bbbccab7-680a-47fc-af23-4318fbe81b43, IsProcessed = False, PreviewUrl = "PreviewUrlf03d6a2d-d451-432e-aedb-56b621d50643", ··· }, ··· }, AnimalMatch { BreedName = "BreedNamed61e73a6-ce1f-4a7e-8de7-26f14eae881d", CreatedAt = 2022-10-09T06:43:49.5848959, DateOfBirth = 01/27/2021, Id = 9e8af804-02bf-454e-b5d4-7bd1ac3bf289, Image = AnimalImageResponse { Description = "Description9a6be67f-dbde-4258-b9d3-62569f027008", FullSizeUrl = "FullSizeUrlf47c31c0-a2f8-41df-8b5d-3f11ec761f91", Id = 97f3938c-51f1-42c8-9130-4e6b4acd2c0d, IsProcessed = True, PreviewUrl = "PreviewUrld4a0d805-3602-41c4-a6ee-b33489da1dfc", ··· }, ··· }]) Adoptrix.Api.Tests.Endpoints.Animals.UpdateAnimalEndpointTests ‑ UpdateAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: UpdateAnimalRequest { AnimalId = a54707e1-fd11-40d4-8ff9-56c6d4c5b5ac, BreedId = 60249cca-6761-4755-89fb-98eb41ac3eb1, DateOfBirth = 04/16/2022, Description = "Description9a214172-03a1-478a-96ca-6a1d4f9a79fd", Name = "Name497096eb-3948-4d87-861f-bab3646041aa", ··· }) … ``` ``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = 58e11a9d-5f20-4b09-a69a-ecb5920dcae2, DateOfBirth = 05/19/2021, Description = "Description9bb38dd9-b926-4862-b3c4-bb7f6eb032bc", Name = "Name34f06fb7-5950-4685-a261-ca948231883d", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = ec798185-da1a-419e-a602-8bf785951538, DateOfBirth = 04/10/2022, Description = "Descriptiona7ede7f0-f852-47ab-aa46-79f0cd0edbf2", Name = "Name2ce90cbf-24df-4551-9145-21fd5134f599", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-02-03T21:55:34.4456076, CreatedBy = 380c0cdc-c3fc-4244-be63-092938b15a78, Id = ebe50c12-03fd-4971-9b79-93e5bfe21fff, Name = "Nameb27fdec3-ddba-403e-883a-35de5a32cd0d", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = d74a74cf-b653-4188-9871-154a8b14c6d1 }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = cbcb4845-1a9f-46bf-96a7-4447c6f96e07 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-11-14T03:42:17.8863078, CreatedBy = b50159f5-e2f1-4722-a3ae-70095589d93a, Id = 54db0ec7-14ad-4d16-a8c9-7a09a5667f7b, Name = "Namef01eb1f0-c9bb-4d69-9c80-96b1faa233d4", ··· }, CreatedAt = 2023-04-16T06:04:54.0565079, CreatedBy = 2fd6734b-d47a-44bd-ab9b-a89820922447, DateOfBirth = 07/27/2016, Description = "Descriptione3d05e04-87bd-4efc-9f31-dabee3d8a446", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = a0a14646-4018-405f-b75a-1dba7a110b36 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-06-27T20:28:23.9784311, CreatedBy = d3d7fcc2-4a2b-4f21-8232-3323db73c28c, Id = 24b77029-1f48-461d-b5ce-54c2fabf0341, Name = "Name3128bf13-02e7-4257-85f3-96b230c96555", ··· }, CreatedAt = 2023-01-06T23:11:37.2065118, CreatedBy = 05141ab2-b51e-49a6-b4cc-6162db91f21d, DateOfBirth = 07/27/2019, Description = "Description40be8749-34e4-4918-ad33-f120ac778739", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = dc755cab-2fae-447f-b884-da112a05f4af }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 5922f5bf-50a7-45ce-8223-07be7f9fef07) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-01-21T10:25:11.3155297, CreatedBy = c8766747-e590-4bb2-824e-a6757dd8961a, Id = 2dc7c2aa-ae0f-46f9-9796-3ef280b15fde, Name = "Name838252f8-4fb7-4604-a7fe-6b4ecb32870e", ··· }, CreatedAt = 2026-03-20T13:55:01.5568015, CreatedBy = 0784d9f4-5c90-41a2-92bc-0f8271897193, DateOfBirth = 07/28/2015, Description = "Descriptionc9abd28d-17d5-421c-8638-8b08d8397f71", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(items: [SearchAnimalsItem { BreedName = "BreedNamee38d4ba3-7635-46a5-9041-b45bc0116a6b", CreatedAt = 2022-09-28T20:27:42.4556039, DateOfBirth = 02/16/2020, Id = fe8f050a-e38a-4f93-8976-654585a983ad, Image = AnimalImage { AnimalId = 1e0ac8b9-d48a-4480-b249-7eb89b9b8411, Description = "Description266e6a44-07c5-487e-989c-bef6c3ff00d7", Id = 1315c184-e71e-4dbf-8456-70af460260b8, IsProcessed = True, OriginalContentType = "OriginalContentTypeba669498-15f6-490d-95e7-f5f4cdd"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNameb9bb928f-e57d-410f-b72e-fc487384f85b", CreatedAt = 2022-07-26T18:24:21.8986834, DateOfBirth = 09/16/2019, Id = de9b8eee-a514-449f-b001-dfa2cad184e2, Image = AnimalImage { AnimalId = 41d7a6c5-9083-4300-9eef-0264e6b419bf, Description = "Descriptionaeac6177-6216-4351-a165-0e812073920c", Id = f2b84107-1de5-4d27-b226-cc238bfa98c9, IsProcessed = False, OriginalContentType = "OriginalContentType8b4e5bc7-71a0-435b-9cf3-1519377"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedName4c580b6b-efc2-40ac-ba7f-6dd4f85e57da", CreatedAt = 2023-03-23T09:55:33.9400851, DateOfBirth = 12/20/2020, Id = 93f871ab-faaf-4c9e-a035-9168a942879c, Image = AnimalImage { AnimalId = 0a876170-d24b-4f51-a13e-f3d7a5ce7947, Description = "Description9ec1da50-185e-492b-9a9d-836533656eec", Id = 78211e8e-6725-40b8-9dc9-1494e2f67804, IsProcessed = True, OriginalContentType = "OriginalContentType3001ba3d-ec12-42d4-a4cd-7ecd45b"···, ··· }, ··· }]) Adoptrix.Api.Tests.Endpoints.Animals.UpdateAnimalEndpointTests ‑ UpdateAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: UpdateAnimalRequest { AnimalId = aaef5b7f-1bd9-40d9-9c3e-8d90abe5167f, BreedId = 7a7c731f-1c05-4347-a6ea-bf100af66653, DateOfBirth = 04/09/2020, Description = "Description0e8db0f4-9c0c-43cf-b649-df8b6d01195d", Name = "Namec767d782-8ae0-48a6-8d7e-cc3daf201dce", ··· }) … ```:recycle: This comment has been updated with latest results.