Skip to content

Commit

Permalink
Force the generation of bootstrap repositories in CT
Browse files Browse the repository at this point in the history
  • Loading branch information
srbarrios committed Dec 3, 2024
1 parent 5309b82 commit 82ac878
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2021-2024 SUSE LLC
# Licensed under the terms of the MIT license.

Feature: Create bootstrap repositories
In order to be able to enroll clients with MU repositories
As the system administrator
I create all bootstrap repos with --with-custom-channels option

Scenario: Create the bootstrap repositories including custom channels
When I create the bootstrap repositories including custom channels
5 changes: 5 additions & 0 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,11 @@
get_target('server').run(cmd)
end

When(/^I create the bootstrap repositories including custom channels$/) do
get_target('server').wait_while_process_running('mgr-create-bootstrap-repo')
get_target('server').run('mgr-create-bootstrap-repo --auto --force --with-custom-channels', check_errors: false, verbose: true)
end

When(/^I install "([^"]*)" product on the proxy$/) do |product|
out, = get_target('proxy').run("zypper ref && zypper --non-interactive install --auto-agree-with-licenses --force-resolution -t product #{product}")
log "Installed #{product} product: #{out}"
Expand Down
1 change: 1 addition & 0 deletions testsuite/run_sets/reference_reposync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

# Special reference repo sync
- features/reposync/reference_srv_sync_products_extra.feature
- features/reposync/srv_create_bootstrap_repositories.feature
#- features/reposync/reference_srv_check_reposync.feature

## Channels and Product synchronization features END ###
1 change: 1 addition & 0 deletions testsuite/run_sets/reposync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
# Activation keys can only be created after products and channels are synced
- features/reposync/srv_create_activationkey.feature
- features/reposync/allcli_update_activationkeys.feature
- features/reposync/srv_create_bootstrap_repositories.feature
## Channels and Product synchronization features END ###

0 comments on commit 82ac878

Please sign in to comment.