From 7d7b26fa5b1a575af92e979a1506fb15800366cb 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 --- .../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 8dd5de4523..defdcabe2a 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 @@ -47,11 +47,7 @@ >{{ $__("Searching...") }}