Skip to content

Commit

Permalink
Trigger a mgr-sync refresh at the beginning of reposync feature (uyun…
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 authored Nov 17, 2024
1 parent 516f35c commit 89592fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion testsuite/features/reposync/srv_sync_channels.feature
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ Feature: Be able to list available channels and enable them

Scenario: Let mgr-sync time out
When I remove the mgr-sync cache file
And I execute mgr-sync refresh
And I refresh SCC
Then I should get "Timeout. No user input for 60 seconds. Exiting..."
8 changes: 4 additions & 4 deletions testsuite/features/reposync/srv_sync_products.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

Feature: Synchronize products in the products page of the Setup Wizard

@scc_credentials
Scenario: Refresh SCC
When I refresh SCC

@scc_credentials
Scenario: Let the products page appear
Given I am authorized for the "Admin" section
Expand Down Expand Up @@ -180,10 +184,6 @@ Scenario: Add openSUSE Leap Micro 5.5 Proxy, including Uyuni Client Tools
Then I should not see a "Operation not successful" text
And I should only see success signs in the product list

@scc_credentials
Scenario: Trigger a refresh of the products synched from SCC
When I execute mgr-sync refresh

@scc_credentials
Scenario: Report the synchronization duration for SLES 15 SP4
When I report the synchronization duration for "sles15-sp4"
4 changes: 0 additions & 4 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,6 @@
get_target('server').run('echo -e "admin\nadmin\n" | mgr-sync refresh', timeout: refresh_timeout)
end

When(/^I execute mgr-sync refresh$/) do
$command_output, _code = get_target('server').run('mgr-sync refresh', check_errors: false)
end

# This function kills spacewalk-repo-sync processes for a particular OS product version.
# It waits for all the reposyncs in the allow-list to complete, and kills all others.
When(/^I kill running spacewalk-repo-sync for "([^"]*)"$/) do |os_product_version|
Expand Down

0 comments on commit 89592fc

Please sign in to comment.