Write e2e tests and service unit tests for the GetZoningDistrictClassesByUuid endpoint.
(This endpoint is within the zoning district domain and accepts a zoning district ID. However, it returns zoning district classes. In instances where we want to mock the return of an object based on its relationship to another we can use a tuple. A tuple of length two will "link" the two objects. See branch 118/unit-test for an example. We relate a tax lot to zoning districts by placing them in a tuple.)
(Yes, it's super confusing that it's effectively a naming clash with GetZoningDistrictClassesById. A more appropriate name would be something like GetZoningDistrictClassesByZoningDistrictId. This should be cleaned up when we go through and rename things as part of discussion #115 )
Acceptance criteria
e2e tests
[ ] 200 path
[ ] 400 path from invalid request parameter
[ ] 404 path from missing test
[ ] 500 path from database error
service unit tests
[x] successfully return expected data
[x] handle ResourceNotFoundError
Related tickets
~blocked by #150, which will create the required zoning-district repository mock and zoning-district entity schema~
~blocked by #151, which will create the required zoning-district-class entity schema~
Description
Write e2e tests and service unit tests for the
GetZoningDistrictClassesByUuid
endpoint.(This endpoint is within the zoning district domain and accepts a zoning district ID. However, it returns zoning district classes. In instances where we want to mock the return of an object based on its relationship to another we can use a tuple. A tuple of length two will "link" the two objects. See branch 118/unit-test for an example. We relate a tax lot to zoning districts by placing them in a tuple.)
(Yes, it's super confusing that it's effectively a naming clash with
GetZoningDistrictClassesById
. A more appropriate name would be something likeGetZoningDistrictClassesByZoningDistrictId
. This should be cleaned up when we go through and rename things as part of discussion #115 )Acceptance criteria
Related tickets
~blocked by #150, which will create the required zoning-district repository mock and zoning-district entity schema~ ~blocked by #151, which will create the required zoning-district-class entity schema~