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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jan 2024 14:02:22 +0000 (15:02 +0100)
commitf0fc65d109ad6c8984f2997c774439e48d532414
tree24cfc2835f03e5427d9c1cd3095fd35f517f31d2
parentc0496d4c134628320013f32491e5630c43d40090
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>
(cherry picked from commit f42741d32cfb8142984cffdf3cd7c7b2a3e794b3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/api/v1/erm_counter_registries.t
t/db_dependent/api/v1/erm_sushi_services.t