Skip to content

Commit

Permalink
QE: Add fake AppStream repo and channel (#9242)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOne91 authored Sep 11, 2024
1 parent 5b34e13 commit 1bfe3f3
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
15 changes: 14 additions & 1 deletion testsuite/features/reposync/srv_create_fake_channels.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015-2023 SUSE LLC
# Copyright (c) 2015-2024 SUSE LLC
# Licensed under the terms of the MIT license.
#
# This feature can cause failures in:
Expand Down Expand Up @@ -158,3 +158,16 @@ Feature: Create fake channels
And I enter "No more description for base channel." as "Channel Description"
And I click on "Create Channel"
Then I should see a "Channel Fake-Base-Channel-RH-like created." text

@rhlike_minion
Scenario: Add a fake AppStream base channel
When I follow the left menu "Software > Manage > Channels"
And I follow "Create Channel"
And I enter "Fake-Base-Channel-AppStream" as "Channel Name"
And I enter "fake-base-channel-appstream" as "Channel Label"
And I select "None" from "Parent Channel"
And I select "x86_64" from "Architecture:"
And I enter "Fake-Base-Channel-AppStream for testing" as "Channel Summary"
And I enter "Description for Fake-Base-Channel-AppStream." as "Channel Description"
And I click on "Create Channel"
Then I should see a "Channel Fake-Base-Channel-AppStream created." text
33 changes: 32 additions & 1 deletion testsuite/features/reposync/srv_create_fake_repositories.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015-2023 SUSE LLC
# Copyright (c) 2015-2024 SUSE LLC
# Licensed under the terms of the MIT license.
#
# This feature can cause failures in:
Expand Down Expand Up @@ -30,6 +30,25 @@ Feature: Create fake repositories for each fake child channel
Then I should see a "Repository updated successfully" text
And I should see "metadataSigned" as unchecked

@rhlike_minion
Scenario: Create a fake AppStream repository
When I follow the left menu "Software > Manage > Repositories"
And I follow "Create Repository"
And I enter "fake-appstream-repo" as "label"
And I enter "http://localhost/pub/TestRepoAppStream/" as "url"
And I click on "Create Repository"
Then I should see a "Repository created successfully" text
And I should see "metadataSigned" as checked

@rhlike_minion
Scenario: Disable metadata check for the fake AppStream repository
When I follow the left menu "Software > Manage > Repositories"
And I follow "fake-appstream-repo"
And I uncheck "metadataSigned"
And I click on "Update Repository"
Then I should see a "Repository updated successfully" text
And I should see "metadataSigned" as unchecked

@sle_minion
Scenario: Add the fake RPM repository to the SUSE fake child channel
When I follow the left menu "Software > Manage > Channels"
Expand Down Expand Up @@ -65,6 +84,18 @@ Feature: Create fake repositories for each fake child channel
And I click on "Save Repositories"
Then I should see a "Fake-Base-Channel-RH-like repository information was successfully updated" text

@rhlike_minion
Scenario: Add the fake AppStream repository to the AppStream base channel
When I follow the left menu "Software > Manage > Channels"
And I follow "Fake-Base-Channel-AppStream"
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-Base-Channel-AppStream updated" text
When I follow "Repositories" in the content area
And I select the "fake-appstream-repo" repo
And I click on "Save Repositories"
Then I should see a "Fake-Base-Channel-AppStream repository information was successfully updated" text

Scenario: Create a fake repository for i586
When I follow the left menu "Software > Manage > Repositories"
And I follow "Create Repository"
Expand Down
14 changes: 13 additions & 1 deletion testsuite/features/reposync/srv_sync_fake_channels.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2023 SUSE LLC
# Copyright (c) 2022-2024 SUSE LLC
# Licensed under the terms of the MIT license.
#
# This feature can cause failures in:
Expand Down Expand Up @@ -93,6 +93,18 @@ Feature: Synchronize fake channels
Then I should see a "Repository sync scheduled for Fake-Base-Channel-RH-like." text
And I wait until the channel "fake-base-channel-rh-like" has been synced

@rhlike_minion
Scenario: Synchronize Fake-Base-Channel-AppStream channel
Given I am authorized for the "Admin" section
When I follow the left menu "Software > Manage > Channels"
And I follow "Fake-Base-Channel-AppStream"
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-Base-Channel-AppStream." text
And I wait until the channel "fake-base-channel-appstream" has been synced

@pxeboot_minion
@uyuni
@scc_credentials
Expand Down
1 change: 1 addition & 0 deletions testsuite/features/support/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,7 @@
'el9-pool-x86_64' => 60,
'fake-base-channel-debian-like' => 120,
'fake-base-channel-rh-like' => 120,
'fake-base-channel-appstream' => 120,
'fake-child-channel-i586' => 120,
'fake-child-channel-suse-like' => 120,
'fake-rpm-suse-channel' => 120,
Expand Down

0 comments on commit 1bfe3f3

Please sign in to comment.