From 1652cd0b5c83b3c8def2eccc06c84aa5d911a107 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 --- .../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...") }}