-
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 strict mode functionality
- Loading branch information
1 parent
c16c6ab
commit 24f5ffb
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
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,56 @@ | ||
# Copyright (c) 2023 SUSE LLC | ||
# Licensed under the terms of the MIT license. | ||
|
||
@susemanager | ||
Feature: Strict Mode for Channel Synchronization | ||
In order to control strict mode synchronization | ||
As an admin user | ||
I want to be able to toggle strict mode synchronization via the UI and command line | ||
|
||
@susemanager | ||
Scenario: Run synchronization with default strict mode | ||
Given I am authorized for the "Admin" section | ||
And I prepare a channel clone for strict mode testing | ||
And I am on the Channels page | ||
And I follow "Create Channel" | ||
And I enter "Test-Strict-Channel" as "Channel Name" | ||
And I enter "test-strict-channel" as "Channel Label" | ||
And I enter "Test-Strict-Channel for testing" as "Channel Summary" | ||
And I click on "Create Channel" | ||
Then I should see a "Channel Test-Strict-Channel created." text | ||
|
||
And I follow "Repositories" in the content area | ||
And I follow "Create Repository" | ||
And I enter "TestRepo_Default" as "Repository Label" | ||
And I enter "http://localhost/pub/TestRepoRpmUpdates/" as "Repository URL" | ||
And I follow "Create Repository" | ||
Then I should see a "Repository created successfully" text | ||
|
||
And I follow "Create Repository" | ||
And I enter "TestRepo_Modified" as "Repository Label" | ||
And I enter "http://localhost/pub/TestRepoRpmUpdates_STRICT_TEST/" as "Repository URL" | ||
And I uncheck "Has Signed Metadata" | ||
And I follow "Create Repository" | ||
Then I should see a "Repository created successfully" text | ||
|
||
And I check "TestRepo_Default" | ||
And I follow "Save Repositories" | ||
And I follow "Sync" | ||
And I click on "Sync Now" | ||
And I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page | ||
And I check the amount of packages in channel "Test-Strict-Channel" | ||
And I follow "Add / Remove" | ||
And I uncheck "TestRepo_Default" | ||
And I check "TestRepo_Modified" | ||
And I follow "Save Repositories" | ||
And I follow "Sync" | ||
And I check "Do not use strict mode" | ||
And I click on "Sync Now" | ||
And I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page | ||
And I am logged into the API | ||
Then The amount of packages in channel "Test-Strict-Channel" should be the same as before | ||
|
||
And I uncheck "Do not use strict mode" | ||
And I click on "Sync Now" | ||
And I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page | ||
Then The amount of packages in channel "Test-Strict-Channel" should be the fewer than before |
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