From 1bfe3f3a94f64aa7ba46546e8f2dca8d250051c8 Mon Sep 17 00:00:00 2001 From: Paolo Invernizzi Date: Wed, 11 Sep 2024 10:36:52 +0200 Subject: [PATCH] QE: Add fake AppStream repo and channel (#9242) --- .../reposync/srv_create_fake_channels.feature | 15 ++++++++- .../srv_create_fake_repositories.feature | 33 ++++++++++++++++++- .../reposync/srv_sync_fake_channels.feature | 14 +++++++- testsuite/features/support/constants.rb | 1 + 4 files changed, 60 insertions(+), 3 deletions(-) diff --git a/testsuite/features/reposync/srv_create_fake_channels.feature b/testsuite/features/reposync/srv_create_fake_channels.feature index 1df49c034211..93710d5c7652 100644 --- a/testsuite/features/reposync/srv_create_fake_channels.feature +++ b/testsuite/features/reposync/srv_create_fake_channels.feature @@ -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: @@ -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 diff --git a/testsuite/features/reposync/srv_create_fake_repositories.feature b/testsuite/features/reposync/srv_create_fake_repositories.feature index 9e9c4d33ebc4..519c87b15e67 100644 --- a/testsuite/features/reposync/srv_create_fake_repositories.feature +++ b/testsuite/features/reposync/srv_create_fake_repositories.feature @@ -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: @@ -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" @@ -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" diff --git a/testsuite/features/reposync/srv_sync_fake_channels.feature b/testsuite/features/reposync/srv_sync_fake_channels.feature index 94c700834b95..e7fe791edae3 100644 --- a/testsuite/features/reposync/srv_sync_fake_channels.feature +++ b/testsuite/features/reposync/srv_sync_fake_channels.feature @@ -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: @@ -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 diff --git a/testsuite/features/support/constants.rb b/testsuite/features/support/constants.rb index c56ed6902380..d4dec7de5c54 100644 --- a/testsuite/features/support/constants.rb +++ b/testsuite/features/support/constants.rb @@ -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,