Skip to content

Commit

Permalink
Migration from mu released to mu unreleased
Browse files Browse the repository at this point in the history
Add upragde autoyast profile and yaml schedule files for migration from
mu released to mu unreleased testsuites.
  • Loading branch information
openQA web UI committed Apr 22, 2024
1 parent df27f66 commit 048ec9f
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: migration_to_mu_unreleased
description: >
Performs a migration from system with released maintenance updates to a product with maintenance updates unreleased
schedule:
- migration/version_switch_origin_system
- boot/boot_to_desktop
- console/register_original_system
- migration/record_disk_info
- migration/reboot_to_upgrade
- migration/version_switch_upgrade_target
- installation/bootloader
- installation/welcome
- installation/upgrade_select
- installation/scc_registration
- installation/add_update_test_repo
- installation/addon_products_sle
- installation/resolve_dependency_issues
- installation/installation_overview
- installation/disable_grub_timeout
- installation/start_install
- installation/await_install
- installation/logs_from_installation_system
- installation/reboot_after_installation
- installation/grub_test
- installation/first_boot
- migration/post_upgrade
- console/consoletest_setup
- console/zypper_lr
- console/zypper_ref
34 changes: 34 additions & 0 deletions tests/console/register_original_system.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2018 SUSE LLC
# SPDX-License-Identifier: FSFAP

# Package: SUSEConnect
# Summary: Rrgister system and modules of the original system by SUSEConnect
# - Register product using SCC_REGCODE code
# - Register modules and extension
# - Check registering status
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

use base "consoletest";
use strict;
use warnings;
use testapi;
use utils 'zypper_call';
use migration;
use registration;

sub run {
select_console 'root-console';

my $scc_addons = get_var 'SCC_ADDONS_ORIGIN', '';
my $retries = 3; # number of retries to run SUSEConnect commands
register_product();
register_addons_cmd($scc_addons, $retries) if $scc_addons;
# Check registration status and repos
assert_script_run("zypper --gpg-auto-import-keys ref", timeout => 180, exitcode => [0, 106]);
assert_script_run("zypper lr | tee /dev/$serialdev");
assert_script_run("SUSEConnect --status-text | tee /dev/$serialdev", timeout => 60);
fully_patch_system;
disable_installation_repos;
}

1;

0 comments on commit 048ec9f

Please sign in to comment.