Skip to content

Commit

Permalink
virt_autotest: switch all vm passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxuguang committed Jun 5, 2024
1 parent a7c08a6 commit 4805df0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/virt_autotest/install_package.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ sub install_package {
}
}

###Install KVM role patterns for aarch64 virtualization host
#Install KVM role patterns for aarch64 virtualization host
if (is_remote_backend && is_aarch64) {
zypper_call("--gpg-auto-import-keys ref", timeout => 180);
zypper_call("in -t pattern kvm_server kvm_tools", timeout => 300);
}

#install qa_lib_virtauto
#Install qa_lib_virtauto
if (is_s390x) {
lpar_cmd("zypper --non-interactive --gpg-auto-import-keys ref");
my $pkg_lib_data = "qa_lib_virtauto-data";
Expand All @@ -99,11 +99,17 @@ sub install_package {

virt_autotest::utils::install_default_packages();

###Install required package for window guest installation on xen host
#Install required package for window guest installation on xen host
if (get_var('GUEST_LIST', '') =~ /^win-.*/ && (is_xen_host)) { zypper_call '--no-refresh --no-gpg-checks in mkisofs' }

#Subscribing packagehub from SLE 15-SP4 onwards that enables access to many useful software tools
virt_autotest::utils::subscribe_extensions_and_modules(reg_exts => 'PackageHub') if (!get_var('AUTOYAST') and is_sle('>=15-sp4') and !is_s390x);

#Switch all VM Passwords
my $source_file = "/usr/share/qa/virtautolib/data/sources.de";
my $qa_password = get_var( "QA_PASSWORD", "nots3cr3t" );
my $vm_password = get_var( "VM_PASSWORD", "novell" );
my $migratee_password = get_var( "MIGRATEE_PASSWORD", "susetesting" );
}

sub run {
Expand Down

0 comments on commit 4805df0

Please sign in to comment.