Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule salt smoke tests on micro-os #20447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/main_micro_alp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ sub load_common_tests {
# Staging has no access to repos and the MicroOS-DVD does not contain ansible
# Ansible test needs Packagehub in SLE and it can't be enabled in SLEM
loadtest 'console/ansible' unless (is_staging || is_sle_micro || is_leap_micro);
loadtest 'console/salt' unless is_sle_micro;
# On s390x zvm setups we need more time to wait for system to boot up.
# Skip this test with sd-boot. The reason is not what you'd think though:
# With sd-boot, host_config does not perform a reboot and a snapshot is made while the serial terminal
Expand Down
11 changes: 9 additions & 2 deletions tests/console/salt.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ use warnings;
use testapi;
use serial_terminal 'select_serial_terminal';
use utils qw(zypper_call quit_packagekit systemctl);
use version_utils qw(is_jeos is_opensuse is_sle is_leap is_community_jeos);
use version_utils qw(is_jeos is_opensuse is_sle is_leap is_community_jeos is_transactional);
use registration 'add_suseconnect_product';
use transactional qw(trup_call check_reboot_changes);

sub run {
select_serial_terminal;
Expand All @@ -44,7 +45,13 @@ sub run {
my @packages = qw(salt-master);
# On SLE/Leap based Minimal-VM/Minimal-Image, salt-minion has to be preinstalled
push @packages, 'salt-minion' unless is_jeos && (is_sle || is_leap) && !is_community_jeos;
zypper_call("in @packages");
if (is_transactional) {
trup_call("pkg in @packages");
check_reboot_changes;
}
else {
zypper_call("in @packages");
}
my $cmd = <<'EOF';
systemctl start salt-master
systemctl status --no-pager salt-master
Expand Down
Loading