From 6e7059c8a2945f1ab5cfebc9ed032f5c696fb385 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Mon, 6 Nov 2023 14:14:45 +0000 Subject: [PATCH] Bug 35218: Add unit tests for the counter registry API This patch adds two unit tests to cover the integration with the Counter Registry API in the Usage Statistics module. This is to prevent regressions caused either by changes to the Koha endpoint, or by changes to the Counter Registry API that might require changes in Koha to handle. Test plan: 1) prove t/db_dependent/api/v1/erm_counter_registries.t 2) prove t/db_dependent/api/v1/erm_sushi_services.t Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../UsageStatisticsDataProvidersFormAdd.vue | 8 +- .../api/v1/erm_counter_registries.t | 167 ++++++++++++++++++ t/db_dependent/api/v1/erm_sushi_services.t | 104 +++++++++++ 3 files changed, 273 insertions(+), 6 deletions(-) create mode 100644 t/db_dependent/api/v1/erm_counter_registries.t create mode 100644 t/db_dependent/api/v1/erm_sushi_services.t diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue index d954ed6e0a..cc13eb3302 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue @@ -46,11 +46,7 @@ >{{ $__("Searching...") }}