Bug 35757: Fix unit tests for external counter registry API
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 10 Jan 2024 10:14:40 +0000 (10:14 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 11 Jan 2024 11:10:44 +0000 (12:10 +0100)
commitf42741d32cfb8142984cffdf3cd7c7b2a3e794b3
tree5656e29bb97d834e2d2ad403df0e53db12ac629d
parent520ac94242818032e7970f62d03caa926597be2e
Bug 35757: Fix unit tests for external counter registry API

This patch updates the unit tests for the external counter registry API used in the Usage Statistics module. The intent of the tests is to identify any changes in the external response that could lead to errors in Koha. To do this, the tests now compare the list of hash keys returned in the response with the current definition in Koha, and identifies any new fields that need to be added to the definition.

Test plan:
prove t/db_dependent/api/v1/erm_counter_registries.t
prove t/db_dependent/api/v1/erm_sushi_services.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
t/db_dependent/api/v1/erm_counter_registries.t
t/db_dependent/api/v1/erm_sushi_services.t