@skip_if_github_validation
@sle_minion
@scope_salt
Feature: 0059 - Verify that Salt mgrcompat state works when the new module.run syntax is enabled
File name: min_salt_mgrcompat_state.feature
Relative path: secondary/min_salt_mgrcompat_state.feature
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Remove mgrcompat module from minion synced modules and schedule Hardware Refresh
Given
I remove "minion/extmods/states/mgrcompat.py" from salt cache on "sle_minion"
00:00:00.701
And
I remove "minion/extmods/states/__pycache__/mgrcompat*" from salt cache on "sle_minion"
00:00:00.420
And
I am on the Systems overview page of this "sle_minion"
00:00:01.554
When
I follow "Hardware"
00:00:00.580
And
I click on "Schedule Hardware Refresh"
00:00:00.848
Then
I should see a "You have successfully scheduled a hardware profile refresh" text
00:00:00.126
When
I wait until event "Hardware List Refresh scheduled" is completed
00:00:22.015
And
I wait until there is no Salt job calling the module "hardware.profileupdate" on "sle_minion"
00:00:02.169
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Remove saltutil grain and mgrcompat module from minion and schedule Hardware Refresh
Given
I remove "minion/extmods/states/mgrcompat.py" from salt cache on "sle_minion"
00:00:00.423
And
I remove "minion/extmods/states/__pycache__/mgrcompat*" from salt cache on "sle_minion"
00:00:00.425
And
I store "grains: {__suse_reserved_saltutil_states_support: False}" into file "custom_grains.conf" in salt minion config directory on "sle_minion"
00:00:00.423
And
I refresh salt-minion grains on "sle_minion"
00:00:01.862
And
I am on the Systems overview page of this "sle_minion"
00:00:01.644
When
I follow "Hardware"
00:00:00.756
And
I click on "Schedule Hardware Refresh"
00:00:00.792
Then
I should see a "You have successfully scheduled a hardware profile refresh" text
00:00:00.119
When
I wait until event "Hardware List Refresh scheduled" is completed
00:00:22.063
And
I wait until there is no Salt job calling the module "hardware.profileupdate" on "sle_minion"
00:00:02.120
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Delete SLES minion system profile before mgrcompat test
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.673
When
I follow "Delete System"
00:00:00.732
Then
I should see a "Confirm System Profile Deletion" text
00:00:00.064
When
I click on "Delete Profile"
00:00:00.061
And
I wait until I see "has been deleted" text
00:04:03.616
And
I wait until Salt client is inactive on "sle_minion"
00:00:00.724
Then
"sle_minion" should not be registered
00:00:01.035
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Enable new module.run syntax on the minion and perform registration
Given
I store "use_superseded: [module.run]" into file "custom_modulerun.conf" in salt minion config directory on "sle_minion"
00:00:00.414
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.079
Then
I should see a "Bootstrap Minions" text
00:00:00.063
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.053
And
I enter "root" as "user"
00:00:00.057
And
I enter "linux" as "password"
00:00:00.061
And
I select the hostname of "proxy" from "proxies" if present
00:00:00.075
And
I click on "Bootstrap"
00:00:00.059
And
I wait until I see "Bootstrap process initiated." text
00:00:24.358
And
I wait until onboarding is completed for "sle_minion"
00:01:21.986
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Check if onboarding for the minion with the new module.run syntax was successful
When
I follow the left menu "Systems > System List > All"
00:00:00.150
And
I wait until I see the name of "sle_minion", refreshing the page
00:00:00.724
And
I wait until onboarding is completed for "sle_minion"
00:00:09.027
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Check that installed packages are visible with the new module.run syntax
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.591
When
I follow "Software" in the content area
00:00:00.073
And
I follow "List / Remove"
00:00:00.781
Then
I should see a "aaa_base" text
00:00:00.131
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Check that Hardware Refresh button works on a SLE minion with new module.run syntax
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.510
And
I follow "Hardware"
00:00:00.547
And
I click on "Schedule Hardware Refresh"
00:00:00.747
Then
I should see a "You have successfully scheduled a hardware profile refresh" text
00:00:00.116
When
I wait until event "Hardware List Refresh scheduled" is completed
00:00:21.749
And
I wait until there is no Salt job calling the module "hardware.profileupdate" on "sle_minion"
00:00:02.145
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Cleanup: Delete profile of the minion and disable new module.run syntax
When
I remove "custom_modulerun.conf" from salt minion config directory on "sle_minion"
00:00:00.415
And
I remove "custom_grains.conf" from salt minion config directory on "sle_minion"
00:00:00.412
And
I delete "sle_minion" system using the api
00:00:04.398
And
I perform a full salt minion cleanup on "sle_minion"
00:00:08.426
And
I wait until Salt client is inactive on "sle_minion"
00:00:00.423
Then
"sle_minion" should not be registered
00:00:00.946
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Cleanup: bootstrap again the minion after mgrcompat tests
When
I perform a full salt minion cleanup on "sle_minion"
00:00:04.285
And
I follow the left menu "Systems > Bootstrapping"
00:00:00.076
Then
I should see a "Bootstrap Minions" text
00:00:00.063
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.054
And
I enter "root" as "user"
00:00:00.054
And
I enter "linux" as "password"
00:00:00.069
And
I select "1-SUSE-KEY-x86_64" from "activationKeys"
00:00:00.071
And
I select the hostname of "proxy" from "proxies" if present
00:00:00.061
And
I click on "Bootstrap"
00:00:00.062
And
I wait until I see "Bootstrap process initiated." text
00:00:36.369
And
I wait until onboarding is completed for "sle_minion"
00:01:22.539