Skip to content

Commit

Permalink
QE: Skip certain tests for SLE Micro SSH minions
Browse files Browse the repository at this point in the history
SLE Micro 5.x SSH minions are not supported fully, for example we do not
support installing/removing packages. This PR skips some of those tests
in our build validation for them.

Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
  • Loading branch information
nodeg committed Sep 15, 2023
1 parent 829cf52 commit 139b46f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Feature: Smoke tests for <client>
And I wait until event "Patch Update:" is completed
And I reboot the "<client>" if it is a SLE Micro

@skip_for_sle_micro_ssh_minion
Scenario: Install a package on the <client>
When I follow "Software" in the content area
And I follow "Install"
Expand All @@ -60,6 +61,7 @@ Feature: Smoke tests for <client>
And I wait until event "Package Install/Upgrade scheduled by admin" is completed
And I reboot the "<client>" if it is a SLE Micro

@skip_for_sle_micro_ssh_minion
Scenario: Remove package from <client>
When I follow "Software" in the content area
And I follow "List / Remove"
Expand Down Expand Up @@ -148,6 +150,7 @@ Feature: Smoke tests for <client>
And I wait until event "Package Install/Upgrade scheduled by admin" is completed
And I reboot the "<client>" if it is a SLE Micro

@skip_for_sle_micro_ssh_minion
Scenario: Enable Prometheus Node exporter formula on the <client>
Given I am on the Systems overview page of this "<client>"
When I follow "Formulas" in the content area
Expand All @@ -173,6 +176,7 @@ Feature: Smoke tests for <client>
And I click on "Save"
Then I should see a "Formula saved" text

@skip_for_sle_micro_ssh_minion
Scenario: Apply highstate for the Prometheus exporters on the <client>
Given I am on the Systems overview page of this "<client>"
When I follow "States" in the content area
Expand All @@ -182,6 +186,7 @@ Feature: Smoke tests for <client>
And I start "prometheus-node_exporter.service" service on "<client>"
And I enable "prometheus-node_exporter.service" service on "<client>"

@skip_for_sle_micro_ssh_minion
Scenario: Visit Node monitoring endpoint on the <client>
When I wait until "node" exporter service is active on "<client>"
And I visit "Prometheus node exporter" endpoint of this "<client>"
Expand All @@ -193,6 +198,7 @@ Feature: Smoke tests for <client>
And I wait until "postgres" exporter service is active on "<client>"
And I visit "Prometheus postgres exporter" endpoint of this "<client>"

@skip_for_sle_micro_ssh_minion
@monitoring_server
Scenario: Test <client> on Grafana
When I visit the grafana dashboards of this "monitoring_server"
Expand Down
7 changes: 7 additions & 0 deletions testsuite/features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@ def process_code_coverage
skip_this_scenario if scenario.location.file.include? 'slemicro'
end

Before('@skip_for_sle_micro_ssh_minion') do |scenario|
micros = %w[slemicro51_ssh_minion slemicro52_ssh_minion slemicro53_ssh_minion slemicro54_ssh_minion]
micros.each do |ssh_minion|
skip_this_scenario if scenario.location.file.include? ssh_minion
end
end

# do some tests only if we have SCC credentials
Before('@scc_credentials') do
skip_this_scenario unless $scc_credentials
Expand Down

0 comments on commit 139b46f

Please sign in to comment.