From b6e20e29ad760781cb133d599b236e2d02c9154c Mon Sep 17 00:00:00 2001 From: Oscar Barrios Date: Mon, 11 Nov 2024 17:24:12 +0100 Subject: [PATCH] QI: Moving reporting of sync duration to the end of the feature --- testsuite/features/reposync/srv_sync_products.feature | 6 ++++-- testsuite/features/support/quality_intelligence.rb | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/testsuite/features/reposync/srv_sync_products.feature b/testsuite/features/reposync/srv_sync_products.feature index 75320b3fbc4..14013ac41a2 100644 --- a/testsuite/features/reposync/srv_sync_products.feature +++ b/testsuite/features/reposync/srv_sync_products.feature @@ -68,7 +68,6 @@ Feature: Synchronize products in the products page of the Setup Wizard And I wait until I see "SUSE Linux Enterprise Server 15 SP4 x86_64" product has been added Then the SLE15 SP4 product should be added When I wait until all synchronized channels for "sles15-sp4" have finished - And I report the synchronization duration for "sles15-sp4" @scc_credentials @uyuni @@ -101,7 +100,6 @@ Feature: Synchronize products in the products page of the Setup Wizard Then the SLE15 SP4 product should be added When I use spacewalk-common-channel to add channel "sles15-sp4-devel-uyuni-client" with arch "x86_64" And I wait until all synchronized channels for "sles15-sp4" have finished - And I report the synchronization duration for "sles15-sp4" # TODO: Refactor the scenarios in order to not require a full synchronization of SLES 15 SP4 product in Uyuni # When I kill running spacewalk-repo-sync for "sles15-sp4" @@ -186,3 +184,7 @@ Feature: Synchronize products in the products page of the Setup Wizard @scc_credentials Scenario: Trigger a refresh of the products synched from SCC When I execute mgr-sync refresh + +@scc_credentials + Scenario: Report the synchronization duration for SLES 15 SP4 + When I report the synchronization duration for "sles15-sp4" diff --git a/testsuite/features/support/quality_intelligence.rb b/testsuite/features/support/quality_intelligence.rb index a60ab2ad54b..c8bd970dd41 100644 --- a/testsuite/features/support/quality_intelligence.rb +++ b/testsuite/features/support/quality_intelligence.rb @@ -20,7 +20,7 @@ def initialize # @param time [Integer] the time to complete the bootstrap in seconds # @return [void] def push_bootstrap_duration(system, time) - @metrics_collector_handler.push_metrics(QI, 'system_bootstrap_duration_seconds', time, { 'system' => system, 'environment' => @environment }) + @metrics_collector_handler.push_metrics(QI, 'system_bootstrap_duration_seconds', time, { :system => system, :environment => @environment }) end # Report the time to complete the onboarding of a system passed as parameter, @@ -30,7 +30,7 @@ def push_bootstrap_duration(system, time) # @param time [Integer] the time to complete the onboarding in seconds # @return [void] def push_onboarding_duration(system, time) - @metrics_collector_handler.push_metrics(QI, 'system_onboarding_duration_seconds', time, { 'system' => system, 'environment' => @environment }) + @metrics_collector_handler.push_metrics(QI, 'system_onboarding_duration_seconds', time, { :system => system, :environment => @environment }) end # Report the time to complete a synchronization of a product passed as parameter, @@ -40,6 +40,6 @@ def push_onboarding_duration(system, time) # @param time [Integer] the time to complete the synchronization in seconds # @return [void] def push_synchronization_duration(product, time) - @metrics_collector_handler.push_metrics(QI, 'product_synch_duration_seconds', time, { 'product' => product, 'environment' => @environment }) + @metrics_collector_handler.push_metrics(QI, 'product_synch_duration_seconds', time, { :system => product, :environment => @environment }) end end