Skip to content

Commit

Permalink
[RFC] Implement module for Slowroll testing
Browse files Browse the repository at this point in the history
Slowroll is Beta. Repos are provided in download.o.o for testing. This commit
introduce a new module which adds those repos in the system. it should be used
after the main installation. The update and staging repos are the most
interesting to test.

Signed-off-by: Ioannis Bonatakis <[email protected]>
  • Loading branch information
b10n1k committed Jan 10, 2024
1 parent 8f34f43 commit 44387cb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2820,6 +2820,8 @@ sub load_system_update_tests {
}
else {
loadtest "update/zypper_clear_repos";

loadtest "update/slowroll_repos" if check_var('VERSION', 'Slowroll');
set_var('CLEAR_REPOS', 1);
}
}
Expand Down
32 changes: 32 additions & 0 deletions tests/update/slowroll_repos.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SUSE's openQA tests
#
# Copyright 2024 SUSE LLC
# SPDX-License-Identifier: FSFAP

# Summary: Add slowroll repos in the system
# Maintainer: Yiannis Bonatakis <[email protected]>

use Mojo::Base 'opensusebasetest';
use testapi;
use serial_terminal 'select_serial_terminal';
use utils 'zypper_call';
sub run {
my $self = shift;
select_serial_terminal;
# select_console 'root-console';
assert_script_run "rm /etc/zypp/repos.d/*";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh http://cdn.opensuse.org/slowroll/repo/oss/ base-oss";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh http://cdn.opensuse.org/slowroll/repo/non-oss/ base-non-oss";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh -p 80 http://cdn.opensuse.org/update/slowroll/repo/oss/ update";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh --disable http://cdn.opensuse.org/slowroll/repo/src-oss/ base-src-oss";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh --disable https://download.opensuse.org/debug/slowroll/repo/oss/ base-oss-debug";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/ h264";
assert_script_run "zypper -n --gpg-auto-import-keys ar --refresh -p 70 http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Slowroll/Essentials/ packmam";
assert_script_run "zypper -n --gpg-auto-import-keys dup";
}

sub test_flags {
return {fatal => 1};
}

1;

0 comments on commit 44387cb

Please sign in to comment.