Skip to content

Commit

Permalink
QE: Update test suite for using Leap 15.4
Browse files Browse the repository at this point in the history
This includes some more adjustments for using openSUSE Leap 15.4 in our
Uyuni CI.

Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
  • Loading branch information
nodeg committed Sep 8, 2023
1 parent a7b751f commit 892d0a7
Show file tree
Hide file tree
Showing 18 changed files with 446 additions and 10 deletions.
76 changes: 74 additions & 2 deletions testsuite/features/secondary/allcli_software_channels.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Feature: Channel subscription via SSM
Given I am authorized for the "Admin" section

@sle_minion
@susemanager
Scenario: Change child channels for SLES minion subscribed to a base channel
When I follow the left menu "Systems > System List > All"
And I click on the clear SSM button
Expand All @@ -34,6 +35,33 @@ Feature: Channel subscription via SSM
And a table line should contain system "sle_minion", "Scheduled"

@sle_minion
@uyuni
Scenario: Change child channels for openSUSE minion subscribed to a base channel
When I follow the left menu "Systems > System List > All"
And I click on the clear SSM button
And I check the "sle_minion" client
And I should see "1" systems selected for SSM
And I follow the left menu "Systems > System Set Manager > Overview"
And I follow "channel memberships" in the content area
Then I should see a "Base Channel" text
And I should see a "Next" text
When I select "Fake Base Channel" from drop-down in table line with "openSUSE Leap 15.4 (x86_64)"
And I click on "Next"
Then I should see a "Child Channels" text
And I should see a "Fake Base Channel" text
And I should see a "1 system(s) to subscribe" text
When I choose radio button "Subscribe" for child channel "Fake Child Channel"
And I click on "Next"
Then I should see a "Channel Changes Overview" text
And I should see a "1 system(s) to subscribe" text
When I schedule action to 3 minutes from now
And I click on "Confirm"
And I remember when I scheduled an action
Then I wait until I see "Channel Changes Actions" text
And a table line should contain system "sle_minion", "Scheduled"

@sle_minion
@susemanager
Scenario: Check SLES minion is still subscribed to old channels before channel change completes
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
Expand All @@ -43,6 +71,17 @@ Feature: Channel subscription via SSM
And I wait until I do not see "Loading..." text
And I should see "SLE15-SP4-Installer-Updates for x86_64" as unchecked

@sle_minion
@uyuni
Scenario: Check openSUSE minion is still subscribed to old channels before channel change completes
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
And I follow "Software Channels" in the content area
And I wait until I do not see "Loading..." text
Then radio button "openSUSE Leap 15.4 (x86_64)" should be checked
And I wait until I do not see "Loading..." text
And I should see "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64) (Development)" as unchecked

@sle_minion
@susemanager
Scenario: Check old channels are still enabled on SLES minion before channel change completes
Expand All @@ -54,8 +93,8 @@ Feature: Channel subscription via SSM
@uyuni
Scenario: Check old channels are still enabled on SLES minion before channel change completes
When I refresh the metadata for "sle_minion"
Then "13" channels should be enabled on "sle_minion"
And channel "SLE-Product-SLES15-SP4-Pool for x86_64" should be enabled on "sle_minion"
Then "10" channels should be enabled on "sle_minion"
And channel "openSUSE Leap 15.4 (x86_64)" should be enabled on "sle_minion"

Scenario: Wait 3 minutes for the scheduled action to be executed
When I wait for "180" seconds
Expand All @@ -77,12 +116,20 @@ Feature: Channel subscription via SSM
And I should see "Fake Child Channel" as checked

@sle_minion
@susemanager
Scenario: Check the new channels are enabled on the SLES minion
When I refresh the metadata for "sle_minion"
Then "2" channels should be enabled on "sle_minion"
And channel "Fake Base Channel" should be enabled on "sle_minion"
And channel "Fake Child Channel" should be enabled on "sle_minion"

@uyuni
Scenario: Check the new channels are enabled on the SLES minion
When I refresh the metadata for "sle_minion"
Then "4" channels should be enabled on "sle_minion"
And channel "Fake Base Channel" should be enabled on "sle_minion"
And channel "Fake Child Channel" should be enabled on "sle_minion"

@rhlike_minion
Scenario: System default channel can't be determined on the Red Hat-like minion
When I follow the left menu "Systems > System List > All"
Expand Down Expand Up @@ -144,6 +191,7 @@ Feature: Channel subscription via SSM
Then radio button "Fake-Deb-AMD64-Channel" should be checked

@sle_minion
@susemanager
Scenario: Cleanup: subscribe the SLES minion back to previous channels
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
Expand All @@ -169,5 +217,29 @@ Feature: Channel subscription via SSM
And I wait until I see "1 system successfully completed this action." text, refreshing the page
Then channel "SLE15-SP4-Installer-Updates for x86_64" should not be enabled on "sle_minion"

@sle_minion
@uyuni
Scenario: Cleanup: subscribe the openSUSE minion back to previous channels
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
And I follow "Software Channels" in the content area
And I wait until I do not see "Loading..." text
And I check radio button "openSUSE Leap 15.4 (x86_64)"
And I wait until I do not see "Loading..." text
And I check "openSUSE 15.4 non oss (x86_64)"
And I check "openSUSE Leap 15.4 non oss Updates (x86_64)"
And I check "openSUSE Leap 15.4 Updates (x86_64)"
And I check "Update repository of openSUSE Leap 15.4 Backports (x86_64)"
And I check "Update repository with updates from SUSE Linux Enterprise 15 for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Fake-RPM-SUSE-Channel"
And I click on "Next"
Then I should see a "Confirm Software Channel Change" text
When I click on "Confirm"
Then I should see a "Changing the channels has been scheduled." text
When I follow "scheduled" in the content area
And I wait until I see "1 system successfully completed this action." text, refreshing the page
Then channel "Uyuni Proxy Devel for openSUSE Leap 15.4 (x86_64) (Development)" should not be enabled on "sle_minion"

Scenario: Cleanup: remove remaining systems from SSM after channel subscription tests
When I click on the clear SSM button
34 changes: 34 additions & 0 deletions testsuite/features/secondary/min_activationkey.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Feature: Bootstrap a Salt minion via the GUI with an activation key
And I enter "e^i.pi=-1" in the editor
And I click on "Create Configuration File"

@susemanager
Scenario: Create a complete minion activation key
When I follow the left menu "Systems > Activation Keys"
And I follow "Create Key"
Expand All @@ -60,6 +61,33 @@ Feature: Bootstrap a Salt minion via the GUI with an activation key
And I click on "Update Activation Key"
Then I should see a "Activation key Minion testing has been modified" text

@uyuni
Scenario: Create a complete minion activation key
When I follow the left menu "Systems > Activation Keys"
And I follow "Create Key"
And I wait for child channels to appear
And I enter "Minion testing" as "description"
And I enter "MINION-TEST" as "key"
And I enter "20" as "usageLimit"
And I select "openSUSE Leap 15.4 (x86_64)" from "selectedBaseChannel"
And I wait for child channels to appear
And I check "openSUSE 15.4 non oss (x86_64)"
And I check "openSUSE Leap 15.4 non oss Updates (x86_64)"
And I check "openSUSE Leap 15.4 Updates (x86_64)"
And I check "Update repository of openSUSE Leap 15.4 Backports (x86_64)"
And I check "Update repository with updates from SUSE Linux Enterprise 15 for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Fake-RPM-SUSE-Channel"
And I click on "Create Activation Key"
And I follow "Configuration" in the content area
And I follow first "Subscribe to Channels" in the content area
And I check "Key Channel" in the list
And I click on "Continue"
And I follow "Packages"
And I enter "orion-dummy perseus-dummy" as "packages"
And I click on "Update Activation Key"
Then I should see a "Activation key Minion testing has been modified" text

Scenario: Bootstrap a SLES minion with an activation key
When I follow the left menu "Systems > Bootstrapping"
Then I should see a "Bootstrap Minions" text
Expand All @@ -86,10 +114,16 @@ Feature: Bootstrap a Salt minion via the GUI with an activation key
Given I am on the Systems overview page of this "sle_minion"
Then I run spacecmd listevents for "sle_minion"

@susemanager
Scenario: Verify that minion bootstrapped with base channel
Given I am on the Systems page
Then I should see a "SLE-Product-SLES15-SP4-Pool for x86_64" text

@uyuni
Scenario: Verify that minion bootstrapped with base channel
Given I am on the Systems page
Then I should see a "openSUSE Leap 15.4 x86_64" text

# bsc#1080807 - Assigning configuration channel in activation key doesn't work
Scenario: Verify that minion bootstrapped with configuration channel
Given I am on the Systems overview page of this "sle_minion"
Expand Down
14 changes: 14 additions & 0 deletions testsuite/features/secondary/min_ansible_control_node.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ Feature: Operate an Ansible control node in a normal minion
Scenario: Pre-requisite: Deploy test playbooks and inventory file
When I deploy testing playbooks and inventory files to "sle_minion"

@susemanager
Scenario: Pre-requisite: Enable client tools repositories
When I enable the repositories "tools_update_repo tools_pool_repo" on this "sle_minion"
And I refresh the metadata for "sle_minion"

# TODO: Check why tools_update_repo is not available on the openSUSE minion
@uyuni
Scenario: Pre-requisite: Enable client tools repositories
When I enable the repositories "tools_pool_repo os_pool_repo" on this "sle_minion"
And I refresh the metadata for "sle_minion"

Scenario: Enable "Ansible control node" system type
Given I am on the Systems overview page of this "sle_minion"
When I follow "Properties" in the content area
Expand Down Expand Up @@ -83,7 +90,14 @@ Feature: Operate an Ansible control node in a normal minion
And I remove package "orion-dummy" from this "sle_minion" without error control
And I remove "/tmp/file.txt" from "sle_minion"

@susemanager
Scenario: Cleanup: Disable client tools repositories
Given I am on the Systems overview page of this "sle_minion"
When I disable the repositories "tools_update_repo tools_pool_repo" on this "sle_minion"
And I refresh the metadata for "sle_minion"

@uyuni
Scenario: Cleanup: Disable client tools repositories
Given I am on the Systems overview page of this "sle_minion"
When I disable the repositories "tools_pool_repo os_pool_repo" on this "sle_minion"
And I refresh the metadata for "sle_minion"
22 changes: 22 additions & 0 deletions testsuite/features/secondary/min_bootstrap_api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Feature: Register a Salt minion via API
Given I am on the Systems overview page of this "sle_minion"
Then I run spacecmd listevents for "sle_minion"

@susemanager
Scenario: API bootstrap: subscribe to base channel
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
Expand All @@ -63,6 +64,27 @@ Feature: Register a Salt minion via API
Then I should see a "Changing the channels has been scheduled." text
And I wait until event "Subscribe channels scheduled by admin" is completed

@uyuni
Scenario: API bootstrap: subscribe to base channel
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
And I follow "Software Channels" in the content area
And I wait until I do not see "Loading..." text
And I check radio button "openSUSE Leap 15.4 (x86_64)"
And I wait until I do not see "Loading..." text
And I check "openSUSE 15.4 non oss (x86_64)"
And I check "openSUSE Leap 15.4 non oss Updates (x86_64)"
And I check "openSUSE Leap 15.4 Updates (x86_64)"
And I check "Update repository of openSUSE Leap 15.4 Backports (x86_64)"
And I check "Update repository with updates from SUSE Linux Enterprise 15 for openSUSE Leap 15.4 (x86_64)"
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Fake-RPM-SUSE-Channel"
And I click on "Next"
Then I should see a "Confirm Software Channel Change" text
When I click on "Confirm"
Then I should see a "Changing the channels has been scheduled." text
And I wait until event "Subscribe channels scheduled by admin" is completed

Scenario: Check events history for failures on SLES minion after API bootstrap
Given I am on the Systems overview page of this "sle_minion"
Then I check for failed events on history event page
Expand Down
17 changes: 17 additions & 0 deletions testsuite/features/secondary/min_bootstrap_script.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Feature: Register a Salt minion with a bootstrap script
Scenario: Detect latest Salt changes on the script-bootstrapped SLES minion
When I query latest Salt changes on "sle_minion"

@susemanager
Scenario: Subscribe the script-bootstrapped SLES minion to a base channel
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
Expand All @@ -55,6 +56,22 @@ Feature: Register a Salt minion with a bootstrap script
Then I should see a "Changing the channels has been scheduled." text
And I wait until event "Subscribe channels scheduled by admin" is completed

@uyuni
Scenario: Subscribe the script-bootstrapped SLES minion to a base channel
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
And I follow "Software Channels" in the content area
And I wait until I do not see "Loading..." text
And I check radio button "openSUSE Leap 15.4 (x86_64)"
And I wait until I do not see "Loading..." text
And I check "Uyuni Client Tools for openSUSE Leap 15.4 (x86_64)"
And I check "Fake-RPM-SUSE-Channel"
And I click on "Next"
Then I should see a "Confirm Software Channel Change" text
When I click on "Confirm"
Then I should see a "Changing the channels has been scheduled." text
And I wait until event "Subscribe channels scheduled by admin" is completed

Scenario: Install a package to the script-bootstrapped SLES minion
Given I am on the Systems overview page of this "sle_minion"
When I follow "Software" in the content area
Expand Down
Loading

0 comments on commit 892d0a7

Please sign in to comment.