-
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.
Isolate synchronization of fake packages
Co-authored-by: Oscar Barrios <obarrios@suse.com>
- Loading branch information
Showing
5 changed files
with
53 additions
and
45 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
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
49 changes: 49 additions & 0 deletions
49
testsuite/features/reposync/srv_sync_fake_channels.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,49 @@ | ||
# Copyright (c) 2022-2023 SUSE LLC | ||
# Licensed under the terms of the MIT license. | ||
|
||
Feature: Prepare fake SUSE channels | ||
In order to have patches and packages to install on clients | ||
As admin | ||
I want to prepare the channels containing those patches and packages | ||
|
||
Scenario: Log in as admin user | ||
Given I am authorized for the "Admin" section | ||
|
||
Scenario: Add the fake packages child channel to the base product channel | ||
When I follow the left menu "Software > Manage > Channels" | ||
And I follow "Create Channel" | ||
And I enter "Fake-RPM-SUSE-Channel" as "Channel Name" | ||
And I enter "fake-rpm-suse-channel" as "Channel Label" | ||
And I select the parent channel for the "sle_minion" from "Parent Channel" | ||
And I select "x86_64" from "Architecture:" | ||
And I enter "Fake-RPM-SUSE-Channel for testing" as "Channel Summary" | ||
And I enter "Description for Fake-RPM-SUSE-Channel Child Channel." as "Channel Description" | ||
And I click on "Create Channel" | ||
Then I should see a "Channel Fake-RPM-SUSE-Channel created." text | ||
|
||
Scenario: Add the repository to the fake packages child channel | ||
When I follow the left menu "Software > Manage > Channels" | ||
And I follow "Fake-RPM-SUSE-Channel" | ||
And I enter "file:///etc/pki/rpm-gpg/uyuni-tools-gpg-pubkey-0d20833e.key" as "GPG key URL" | ||
And I click on "Update Channel" | ||
Then I should see a "Channel Fake-RPM-SUSE-Channel updated" text | ||
When I follow "Repositories" in the content area | ||
And I select the "fake-rpm-repo" repo | ||
And I click on "Save Repositories" | ||
Then I should see a "Fake-RPM-SUSE-Channel repository information was successfully updated" text | ||
|
||
Scenario: Synchronize the repository in the fake packages channel | ||
When I enable source package syncing | ||
And I follow the left menu "Software > Manage > Channels" | ||
And I follow "Fake-RPM-SUSE-Channel" | ||
And I follow "Repositories" in the content area | ||
And I follow "Sync" | ||
And I wait at most 60 seconds until I do not see "Repository sync is running." text, refreshing the page | ||
And I click on "Sync Now" | ||
Then I should see a "Repository sync scheduled for Fake-RPM-SUSE-Channel." text | ||
And I wait until the channel "fake-rpm-suse-channel" has been synced | ||
And I disable source package syncing | ||
|
||
Scenario: Verify state of Fake-RPM-SUSE-Channel custom channel | ||
Then "orion-dummy-1.1-1.1.x86_64.rpm" package should have been stored | ||
And solver file for "fake-rpm-suse-channel" should reference "orion-dummy-1.1-1.1.x86_64.rpm" |
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
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