From 2898557e33db993703223184ee9d82336eb26431 Mon Sep 17 00:00:00 2001 From: Dominik Gedon Date: Fri, 15 Sep 2023 16:52:36 +0200 Subject: [PATCH] Refactor for SLE Micro minion --- .../build_validation/smoke_tests/smoke_tests.template | 5 +++++ testsuite/features/support/env.rb | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/testsuite/features/build_validation/smoke_tests/smoke_tests.template b/testsuite/features/build_validation/smoke_tests/smoke_tests.template index 407c737bc480..539b92559d3a 100644 --- a/testsuite/features/build_validation/smoke_tests/smoke_tests.template +++ b/testsuite/features/build_validation/smoke_tests/smoke_tests.template @@ -184,6 +184,11 @@ Feature: Smoke tests for And I click on "Apply Highstate" Then I should see a "Applying the highstate has been scheduled." text And I wait until event "Apply highstate scheduled by admin" is completed + +@skip_for_sle_micro_ssh_minion +@sle_micro_minion + # workaround for SLE Micro minion issue bsc#1209374 + Scenario: Enable and start Prometheus exporter service And I start the "prometheus-node_exporter.service" service on "" And I enable the "prometheus-node_exporter.service" service on "" diff --git a/testsuite/features/support/env.rb b/testsuite/features/support/env.rb index 5b30bdb50d1f..8629d43075e7 100644 --- a/testsuite/features/support/env.rb +++ b/testsuite/features/support/env.rb @@ -453,6 +453,10 @@ def process_code_coverage skip_this_scenario unless (filename.include? 'sle') || (filename.include? 'suse') end +Before('@sle_micro_minion') do |scenario| + skip_this_scenario unless scenario.location.file.include? 'slemicro' +end + Before('@skip_for_debianlike') do |scenario| filename = scenario.location.file skip_this_scenario if (filename.include? 'ubuntu') || (filename.include? 'debian')