Skip to content

Commit

Permalink
Fix change_password failure on TW
Browse files Browse the repository at this point in the history
SUSE certificates: ensure_ca_certificate default

  Use SLE-Factory when CA folder not found in IBS

Add different timeout for ppc64le emulated

Reduce yaml files for minimal+base_yast

Reduce yaml files for minimal+base_yast

Reduce yaml files for minimal+base_yast

Change select patterns to select patterns from top

Added new key in default scehdules

Same fix for s390x-zVM

Remove VM network adapter, and log soft failure

Progress ticket: https://progress.opensuse.org/issues/151645

Integrate AZ fencing permissions functions into one

This is a following PR for #20415.
There are 3 functions for setupping native fencing permission for AZ test,
but only `qesap_az_setup_native_fencing_permissions` is called by test
code. So we integrate these three into one for 2 reasons:
1. After integrating, the code is not long, still easy to read.
2. Simply the test code.

Related: https://jira.suse.com/browse/TEAM-9699

Schedule salt smoke test on SLE staging

https://progress.opensuse.org/issues/87982

Add test for Business One Command Line Installation

Fixes TEAM-9660

Adds:
Settings for b1 validation app
Shell script to parse business one validation program

Business One configuration file for Installation

Changed to create directory only if was not preset (prevent error
during mkdir /sapinst)

Schedule for bone_test and bone_validation

Business One Installation test

Business one installation validation test

Install additional modules and packages if business one installation

Fixes for tidy
  • Loading branch information
GraceWang authored and emiura committed Oct 21, 2024
1 parent a850754 commit a00f563
Show file tree
Hide file tree
Showing 45 changed files with 612 additions and 471 deletions.
114 changes: 114 additions & 0 deletions data/sles4sap/b1.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# N/A
API_AUTHENTICATION_SERVICE_PORT=60010
# N/A
API_GATEWAY_SERVICE_PORT=60000
# Action to be performed with Authentication Service Database
AUTHENTICATION_SERVICE_DATABASE_ACTION=create
# Name of AuthenticationService Database
AUTHENTICATION_SERVICE_DATABASE_NAME=B1AS
# Authentication service port used for the HTTPS protocol
AUTHENTICATION_SERVICE_HTTPS_PORT=40020
# Authentication service management port used for the HTTP protocol
AUTHENTICATION_SERVICE_MANAGEMENT_HTTP_PORT=40021
# Set AutoStart for SAMBA service?
B1S_SAMBA_AUTOSTART=true
# Overwrite the existing B1 Shared folder?
B1S_SHARED_FOLDER_OVERWRITE=true
# Password for B1 tech user.
B1S_TECHUSER_PASSWORD=
# Compress backups
BCKP_BACKUP_COMPRESS=true
# N/A
BCKP_HANA_SERVERS=<servers><server><system address="%SERVER%"/><database instance="%INSTANCE%" port="30013" tenant-db="%TENANT_DB%" user="" password=""/></server></servers>
# Log files location
BCKP_PATH_LOG=/var/log/SAPBusinessOne/BackupService/logs
# Backup location
BCKP_PATH_TARGET=/hana/shared/backup_service/backups
# Working folder
BCKP_PATH_WORKING=/tmp/backup_service
# Create default CD Repository
CD_REPOSITARY_ACTION=none
# Central working share repository user password.
CD_WORKINGSHARE_PASSWORD=
# Central working share repository user name.
CD_WORKINGSHARE_USER=
# Create Central Log Repository
CENTRAL_LOG_ACTION=none
# Central log repository user password.
CENTRAL_LOG_PASSWORD=
# Path to central log repository.
CENTRAL_LOG_PATH=/usr/sap/SAPBusinessOne/ServerTools/SLD/CentralLogFolder
# Central log repository username under which is shared.
CENTRAL_LOG_USER=b1LogUser
# Delete Shared Folder during uninstall
DELETE_B1_SHR=false
# Port used by Electronic Document Service dashboard
EDS_DASHBOARD_PORT=7298
# Port used by Electronic Document Service
EDS_PORT=7299
# HANA DB Server instance
HANA_DATABASE_INSTANCE=%INSTANCE%
# HANA DB Server name or IP
HANA_DATABASE_SERVER=%SERVER%
# HANA DB Server Port
HANA_DATABASE_SERVER_PORT=30013
# Name of tenant database for Multiple Container Mode
HANA_DATABASE_TENANT_DB=%TENANT_DB%
# HANA DB User ID
HANA_DATABASE_USER_ID=
# HANA DB Password
HANA_DATABASE_USER_PASSWORD=
# Installation folder
INSTALLATION_FOLDER=/usr/sap/SAPBusinessOne
# SLD Landscape Installation Type
LANDSCAPE_INSTALL_ACTION=create
# Node type of License Server
LICENSE_SERVER_NODE=standalone
# Network address of local machine
LOCAL_ADDRESS=%SERVER%
# Path to central log repository.
NETWORK_CENTRAL_LOG_PATH=\\%SERVER%\B1_CENTRAL_LOG_REPOSITORY
# Path to repository where DVD is copied.
NETWORK_REPOSITORY_PATH=\\%SERVER%\B1_DEFAULT_REPOSITORY
# Repository username password.
REPOSITORY_PASSWORD=
# Path to repository where DVD is copied.
REPOSITORY_PATH=/sapinst2
# Repository username under which is shared.
REPOSITORY_USER=b1RepositoryUser
# Features selected for installation/uninstallation/upgrade
SELECTED_FEATURES=B1ServerToolsSLD,B1ServerToolsExtensionManager,B1ServerToolsLicense,B1ServerToolsJobService,B1ServerToolsMobileService,B1ServerToolsXApp,B1SLDAgent,B1WebClient,B1BackupService,B1ServerSHR,B1ServerCommonDB,B1ServerHelp_EN,B1ServerAddons,B1ServerOI,B1AnalyticsOlap,B1AnalyticsTomcatEntSearch,B1AnalyticsTomcatDashboard,B1AnalyticsTomcatReplication,B1AnalyticsTomcatConfiguration,B1AnalyticsTomcatPredictiveAnalysis,B1ServiceLayerComponent,B1ElectronicDocumentService,B1APIGatewayService
# Service Port
SERVICE_PORT=40000
# Site User ID
SITE_USER_ID=
# Site User Password
SITE_USER_PASSWORD=
# SLD Certificate Action
SLD_CERTIFICATE_ACTION=self
# Password to SLD Certificate file
SLD_CERTIFICATE_PASSWORD=
# Action to be performed with SLD Database
SLD_DATABASE_ACTION=create
# SLD Database Name
SLD_DATABASE_NAME=SLDDATA
# Landscape Server Address
SLD_SERVER_ADDR=%SERVER%
# Landscape Server Port
SLD_SERVER_PORT=40000
# Landscape Server Protocol
SLD_SERVER_PROTOCOL=https
# Landscape Server Type Ondemand/OnPremise
SLD_SERVER_TYPE=op
# Windows Domain Action
SLD_WINDOWS_DOMAIN_ACTION=skip
# Service Layer load balancer member(s)
SL_LB_MEMBERS=127.0.0.1:50001,127.0.0.1:50002,127.0.0.1:50003,127.0.0.1:50004
# Install Service Layer load balancer member(s) only
SL_LB_MEMBER_ONLY=false
# Service Layer load balancer port number
SL_LB_PORT=50000
# Maximum threads per Service Layer load balancer member
SL_THREAD_PER_SERVER=24
# Port used by Web Client
WEBCLIENT_PORT=8443
67 changes: 67 additions & 0 deletions data/sles4sap/b1_log.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash
# check if log file is given
if [[ $# -eq 0 ]] ; then
echo 'No parameters given'
exit 1
fi

# Read the input file line by line, combine broken lines without timestamp
fix_broken_log(){
while IFS= read -r line; do
line=$(echo $line | sed 's/[\/&]/\\&/g')
if [[ $line =~ ^[[:space:]]*\[[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\].* ]]; then
echo "$line" >> "$fixed"
else
if [[ -s $fixed ]]; then
sed -i -e '$ s/$/ '"$line"'/g' "$fixed" || exit 1
fi
fi
done < "$1"
}

# parse B1 log file and look for line with possible failures
# first pass
first=$(mktemp /tmp/tempXXXX)
failures=0
sed -n '/^-\{80\}$/,/^-\{80\}$/ { /^-\{80\}$/!p }' "$1" > $first
echo "Validation results:"
while IFS="" read -r line; do
if (echo $line | grep -qv SUCCESS); then
failures=$((failres+1))
fi
echo $line
done < $first

echo -e ""

# second pass
second=$(mktemp /tmp/tempXXXX)
fixed=$(mktemp /tmp/tempXXXX)
sed -n 'H;${x;s/.*\(^\(-\{80\}\).*\)/\1/;p}' "$1" | sed -n '/^-\{80\}$/,$p' > $second
#cleanup removing lines starting with a timestap YYYY-MM-DD
sed -i -e '/\[[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\].*/d' $second
fix_broken_log $second
# keep only lines with Sap Note
sed -i -e '/.*\[Sap Note.*/!d' $fixed
echo "Sap Notes:"
while IFS="" read -r line; do
if (echo $line | egrep -v SUCCESS\|INFO); then
failures=$((failures+1))
fi
echo $line
done < $fixed
# clean temp files
rm -f $first
rm -f $second
rm -f $fixed

# Check for failures
if [ $failures -gt 0 ]; then
echo "============= Some failures found ============="
echo "=============== Check logs!! ================="
exit 1
fi

# else, no failures found
exit 0

34 changes: 34 additions & 0 deletions data/sles4sap/bone.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
B1S_SAMBA_AUTOSTART=true
B1S_SHARED_FOLDER_OVERWRITE=true
BCKP_BACKUP_COMPRESS=true
HANA_DATABASE_USER_ID=SYSTEM
LANDSCAPE_INSTALL_ACTION=create
LICENSE_SERVER_ACTION=register
LICENSE_SERVER_NODE=standalone
SELECTED_FEATURES=B1ServerToolsSLD,B1ServerToolsExtensionManager,B1ServerToolsLicense,B1ServerToolsJobService,B1ServerToolsMobileService,B1ServerToolsXApp,B1SLDAgent,B1WebClient,B1BackupService,B1ServerSHR,B1ServerCommonDB,B1ServerHelp_EN,B1ServerAddons,B1ServerOI,B1AnalyticsOlap,B1AnalyticsTomcatEntSearch,B1AnalyticsTomcatDashboard,B1AnalyticsTomcatReplication,B1AnalyticsTomcatConfiguration,B1AnalyticsTomcatPredictiveAnalysis,B1ServiceLayerComponent,B1ElectronicDocumentService,B1APIGatewayService
SITE_USER_ID=B1SiteUser
SLD_CERTIFICATE_ACTION=self
SLD_DATABASE_ACTION=create
SLD_DATABASE_NAME=SLDDATA
SLD_SERVER_PROTOCOL=https
SLD_SERVER_TYPE=op
INSTALLATION_FOLDER=/usr/sap/SAPBusinessOne
INST_FOLDER_CORRECT_PERMISSIONS=true
SL_LB_MEMBERS=127.0.0.1:50001,127.0.0.1:50002,127.0.0.1:50003,127.0.0.1:50004
SL_LB_MEMBER_ONLY=false
SL_LB_PORT=50000
SL_THREAD_PER_SERVER=24
WEBCLIENT_PORT=8443
#### flexible part ###
BCKP_HANA_SERVERS=<servers><server><system address="%SERVER%"/><database instance="%INSTANCE%" port="30013" tenant-db="%TENANT_DB%" user="SYSTEM" password="%PASSWORD%"/></server></servers>
HANA_DATABASE_ADMIN_ID=%ADMIN_ID%
HANA_DATABASE_TENANT_DB=%TENANT_DB%
HANA_DATABASE_INSTANCE=%INSTANCE%
HANA_DATABASE_SERVER_PORT=30013
HANA_DATABASE_SERVER=%SERVER%
HANA_DATABASE_LOCATION=%SERVER%
HANA_DATABASE_ADMIN_PASSWD=%PASSWORD%
HANA_DATABASE_USER_PASSWORD=%PASSWORD%
LOCAL_ADDRESS=%SERVER%
SITE_USER_PASSWORD=%PASSWORD%

11 changes: 10 additions & 1 deletion lib/Distribution/Opensuse/AgamaDevel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use Yam::Agama::Pom::GrubMenuBasePage;
use Yam::Agama::Pom::GrubMenuAgamaPage;
use Yam::Agama::Pom::GrubMenuTumbleweedPage;
use Yam::Agama::Pom::GrubEntryEditionPage;
use Yam::Agama::Pom::AgamaUpAndRunningBasePage;
use Yam::Agama::Pom::AgamaUpAndRunningOpensusePage;
use Yam::Agama::Pom::RebootPage;
use Yam::Agama::Pom::RebootTextmodePage;
Expand Down Expand Up @@ -44,8 +45,16 @@ sub get_grub_entry_edition {
: Yam::Agama::Pom::GrubEntryEditionPage->new();
}

sub get_agama_up_an_running_base {
return is_ppc64le() ? Yam::Agama::Pom::AgamaUpAndRunningBasePage->new({
timeout_expect_is_shown => 300})
: Yam::Agama::Pom::AgamaUpAndRunningBasePage->new();
}

sub get_agama_up_an_running {
return Yam::Agama::Pom::AgamaUpAndRunningOpensusePage->new();
my $self = shift;
return Yam::Agama::Pom::AgamaUpAndRunningOpensusePage->new({
agama_up_and_running_base => $self->get_agama_up_an_running_base()});
}

sub get_reboot {
Expand Down
8 changes: 5 additions & 3 deletions lib/Distribution/Sle/AgamaDevel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ use parent 'Distribution::Opensuse::Leap::16Latest';

use Yam::Agama::Pom::GrubMenuBasePage;
use Yam::Agama::Pom::GrubMenuSlesPage;
use Yam::Agama::Pom::AgamaUpAndRunningBasePage;
use Yam::Agama::Pom::AgamaUpAndRunningSlePage;

sub get_grub_menu_installed_system {
return Yam::Agama::Pom::GrubMenuSlesPage->new({
grub_menu_base => Yam::Agama::Pom::GrubMenuBasePage->new()
});
grub_menu_base => Yam::Agama::Pom::GrubMenuBasePage->new()});
}

sub get_agama_up_an_running {
return Yam::Agama::Pom::AgamaUpAndRunningSlePage->new();
my $self = shift;
return Yam::Agama::Pom::AgamaUpAndRunningSlePage->new({
agama_up_and_running_base => $self->get_agama_up_an_running_base()});
}

1;
5 changes: 3 additions & 2 deletions lib/Yam/Agama/Pom/AgamaUpAndRunningBasePage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ use testapi;
sub new {
my ($class, $args) = @_;
return bless {
tag_array_ref_any_first_screen_shown => [qw(agama-product-selection agama-configuring-the-product agama-installing)]
tag_array_ref_any_first_screen_shown => [],
timeout_expect_is_shown => $args->{timeout_expect_is_shown} // 90
}, $class;
}

sub expect_is_shown {
my ($self) = @_;
assert_screen($self->{tag_array_ref_any_first_screen_shown}, 90);
assert_screen($self->{tag_array_ref_any_first_screen_shown}, $self->{timeout_expect_is_shown});
}

1;
17 changes: 10 additions & 7 deletions lib/Yam/Agama/Pom/AgamaUpAndRunningOpensusePage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ package Yam::Agama::Pom::AgamaUpAndRunningOpensusePage;
use strict;
use warnings;

use testapi;

sub new {
my ($class, $args) = @_;
return bless {
tag_array_ref_any_first_screen_shown => [qw(agama-product-selection agama-configuring-the-product agama-installing)]
my $self = bless {
agama_up_and_running_base => $args->{agama_up_and_running_base},
}, $class;
return $self->init($args);
}

sub expect_is_shown {
my ($self) = @_;
assert_screen($self->{tag_array_ref_any_first_screen_shown}, 90);
sub init {
my ($self, $args) = @_;
$self->{agama_up_and_running_base}->{tag_array_ref_any_first_screen_shown} =
[qw(agama-product-selection agama-configuring-the-product agama-installing)];
return $self;
}

sub expect_is_shown { shift->{agama_up_and_running_base}->expect_is_shown() }

1;
17 changes: 10 additions & 7 deletions lib/Yam/Agama/Pom/AgamaUpAndRunningSlePage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ package Yam::Agama::Pom::AgamaUpAndRunningSlePage;
use strict;
use warnings;

use testapi;

sub new {
my ($class, $args) = @_;
return bless {
tag_array_ref_any_first_screen_shown => [qw(agama-installing agama-sle-overview)]
my $self = bless {
agama_up_and_running_base => $args->{agama_up_and_running_base},
}, $class;
return $self->init($args);
}

sub expect_is_shown {
my ($self) = @_;
assert_screen($self->{tag_array_ref_any_first_screen_shown}, 90);
sub init {
my ($self, $args) = @_;
$self->{agama_up_and_running_base}->{tag_array_ref_any_first_screen_shown} =
[qw(agama-installing agama-sle-overview)];
return $self;
}

sub expect_is_shown { shift->{agama_up_and_running_base}->expect_is_shown() }

1;
Loading

0 comments on commit a00f563

Please sign in to comment.