Skip to content

Commit

Permalink
Merge pull request #3820 from alvarocarvajald/sles4sap-15
Browse files Browse the repository at this point in the history
sles4sap: Add support for SLES4SAP-15 (user settings, registration)
  • Loading branch information
okurz committed Oct 28, 2017
2 parents 7af8f85 + fb5c2fd commit cda58c8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/main_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ sub set_defaults_for_username_and_password {
$testapi::password = '';
}
else {
if (get_var('FLAVOR', '') =~ /SAP/) {
$testapi::username = "root"; #in sles4sap only root user created
if (get_var('FLAVOR', '') =~ /SAP/ and !sle_version_at_least('15')) {
$testapi::username = "root"; #in sles4sap only root user created (before SLE-15)
}
else {
$testapi::username = "bernhard";
Expand Down
5 changes: 3 additions & 2 deletions lib/registration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ our %SLE15_MODULES = (
# are not preselected, to crosscheck or just recreate automatic selections
# manually
our %SLE15_DEFAULT_MODULES = (
sles => 'base,desktop,serverapp',
sled => 'base,desktop,productivity'
sles => 'base,desktop,serverapp',
sled => 'base,desktop,productivity',
sles4sap => 'base,desktop,serverapp,ha,sapapp',
);

sub fill_in_registration_data {
Expand Down
8 changes: 4 additions & 4 deletions products/sle/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sub is_leanos {
}

sub is_sles4sap {
return get_var('FLAVOR', '') =~ /SAP/;
return get_var('FLAVOR', '') =~ /SAP/ || check_var('SLE_PRODUCT', 'sles4sap');
}

sub is_sles4sap_standard {
Expand Down Expand Up @@ -583,7 +583,7 @@ sub load_inst_tests {
else {
loadtest "installation/skip_registration" unless check_var('SLE_PRODUCT', 'leanos');
}
if (is_sles4sap) {
if (is_sles4sap and !sle_version_at_least('15')) {
loadtest "installation/sles4sap_product_installation_mode";
}
if (get_var('MAINT_TEST_REPO')) {
Expand Down Expand Up @@ -666,7 +666,7 @@ sub load_inst_tests {
loadtest "installation/logpackages";
}
if (is_sles4sap()) {
if (check_var("SLES4SAP_MODE", 'sles')) {
if (check_var("SLES4SAP_MODE", 'sles') or sle_version_at_least('15')) {
loadtest "installation/user_settings";
} # sles4sap wizard installation doesn't have user_settings step
}
Expand Down Expand Up @@ -951,9 +951,9 @@ sub load_x11tests {
}
loadtest "x11/desktop_mainmenu";
if (is_sles4sap() and !is_sles4sap_standard()) {
loadtest "sles4sap/patterns";
loadtest "sles4sap/sapconf";
loadtest "sles4sap/saptune";
loadtest "sles4sap/patterns";
if (get_var('NW')) {
loadtest "sles4sap/nw_ascs_install" if (get_var('SLES4SAP_MODE') !~ /wizard/);
loadtest "sles4sap/netweaver_ascs";
Expand Down
2 changes: 1 addition & 1 deletion tests/installation/releasenotes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sub run {
}

# no release-notes for WE and all modules
my @no_relnotes = qw(we lgm asmm certm contm pcm tcm wsm hpcm ids idu phub all-packages);
my @no_relnotes = qw(we lgm asmm certm contm pcm tcm wsm hpcm ids idu phub all-packages sapapp);

# No release-notes for basic modules on SLE 15
if (sle_version_at_least('15') && check_var('DISTRI', 'sle')) {
Expand Down

0 comments on commit cda58c8

Please sign in to comment.