-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cucumber test for covering reboot required flag
- Loading branch information
1 parent
cfe79bf
commit 48e8732
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
testsuite/features/secondary/min_reboot_required_flag.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright (c) 2024 SUSE LLC | ||
# Licensed under the terms of the MIT license. | ||
|
||
Feature: Reboot Required Indication | ||
|
||
Scenario: Log in as admin user | ||
Given I am authorized for the "Admin" section | ||
|
||
@sle_minion | ||
Scenario: Trigger reboot required indication for SUSE distributions | ||
Given I am on the Systems overview page of this "sle_minion" | ||
When I follow "Remote Command" | ||
And I enter "#!/bin/sh\ntouch /run/reboot-needed" as "script_body" text area | ||
And I click on "Schedule" | ||
Then I should see a "Remote Command has been scheduled" text | ||
When I follow "Overview" | ||
And I wait until I see "The system requires a reboot" text, refreshing the page | ||
|
||
@sle_minion | ||
Scenario: Remove reboot required indication for SUSE distributions | ||
Given I am on the Systems overview page of this "sle_minion" | ||
Then I should see a "The system requires a reboot" text | ||
When I follow "Remote Command" | ||
And I enter "#!/bin/sh\nrm -rf /run/reboot-needed" as "script_body" text area | ||
And I click on "Schedule" | ||
Then I should see a "Remote Command has been scheduled" text | ||
When I follow "Software" in the content area | ||
And I click on "Update Package List" | ||
Then I should see a "You have successfully scheduled a package profile refresh" text | ||
When I follow "Details" | ||
And I wait until I do not see "The system requires a reboot" text, refreshing the page | ||
|
||
@deblike_minion | ||
Scenario: Trigger reboot required indication for Debian-like distributions | ||
Given I am on the Systems overview page of this "deblike_minion" | ||
When I follow "Remote Command" | ||
And I enter "#!/bin/sh\ntouch /var/run/reboot-required" as "script_body" text area | ||
And I click on "Schedule" | ||
Then I should see a "Remote Command has been scheduled" text | ||
When I follow "Overview" | ||
And I wait until I see "The system requires a reboot" text, refreshing the page | ||
|
||
@deblike_minion | ||
Scenario: Remove reboot required indication for Debian-like distributions | ||
Given I am on the Systems overview page of this "deblike_minion" | ||
Then I should see a "The system requires a reboot" text | ||
When I follow "Remote Command" | ||
And I enter "#!/bin/sh\nrm -rf /var/run/reboot-required" as "script_body" text area | ||
And I click on "Schedule" | ||
Then I should see a "Remote Command has been scheduled" text | ||
When I follow "Software" in the content area | ||
And I click on "Update Package List" | ||
Then I should see a "You have successfully scheduled a package profile refresh" text | ||
When I follow "Details" | ||
And I wait until I do not see "The system requires a reboot" text, refreshing the page |