Skip to content

Commit cfaf720

Browse files
authored
Merge pull request #222 from fmherschel/angi-ScaleOut-newComparators
Angi scale out new comparators
2 parents 63a8ad0 + 3221480 commit cfaf720

File tree

170 files changed

+1982
-1118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+1982
-1118
lines changed

00_files_to_osc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
make copy REL=15 OBSPROJ=./osc/SAPHanaSR-angi
22
make -f Makefile-tester copy REL=15 OBSPROJ=./osc/SAPHanaSR-tester
33

4+
make -f Makefile-tester copy REL=15 OBSPROJ='./ibs/home:fmherschel/SAPHanaSR-tester'
5+
6+

SAPHanaSR-angi.spec

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ install -m 0555 tools/SAPHanaSR-manageProvider %{buildroot}/usr/bin
116116
install -m 0444 tools/SAPHanaSRTools.pm %{buildroot}/usr/lib/%{name}
117117
install -m 0444 tools/saphana_sr_tools.py %{buildroot}/usr/lib/%{name}
118118

119-
# wizard files for hawk2
120-
install -D -m 0644 wizard/hawk2/saphanasr.yaml %{buildroot}%{crmscr_path}/saphanasr/main.yml
121-
install -D -m 0644 wizard/hawk2/saphanasr_su_po.yaml %{buildroot}%{crmscr_path}/saphanasr-su-po/main.yml
122-
install -D -m 0644 wizard/hawk2/saphanasr_su_co.yaml %{buildroot}%{crmscr_path}/saphanasr-su-co/main.yml
123-
124119
%files
125120
%defattr(-,root,root)
126121
%dir /usr/lib/ocf
@@ -141,14 +136,6 @@ install -D -m 0644 wizard/hawk2/saphanasr_su_co.yaml %{buildroot}%{crmscr_path}/
141136
/usr/bin/SAPHanaSR-hookHelper
142137
/usr/bin/SAPHanaSR-manageProvider
143138

144-
## HAWK2 wizard
145-
%dir %{crmscr_path}/saphanasr/
146-
%dir %{crmscr_path}/saphanasr-su-po/
147-
%dir %{crmscr_path}/saphanasr-su-co/
148-
%{crmscr_path}/saphanasr/main.yml
149-
%{crmscr_path}/saphanasr-su-po/main.yml
150-
%{crmscr_path}/saphanasr-su-co/main.yml
151-
152139
%license LICENSE
153140
%dir %{_docdir}/%{name}
154141
%doc README.md

SAPHanaSR-tester.spec

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ License: GPL-2.0
1919
Group: Productivity/Clustering/HA
2020
AutoReqProv: on
2121
Summary: Test suite for SAPHanaSR clusters
22-
Version: 1.2.4
22+
Version: 1.2.7
2323
Release: 0
2424
Url: https://www.suse.com/c/fail-safe-operation-of-sap-hana-suse-extends-its-high-availability-solution/
2525

@@ -56,8 +56,9 @@ mkdir -p %{buildroot}/usr/bin
5656
#mkdir -p %{buildroot}%{_docdir}/%{name}
5757
mkdir -p %{buildroot}/usr/share/%{name}
5858
mkdir -p %{buildroot}/usr/lib/%{name}
59+
mkdir -p %{buildroot}%{_mandir}/man5
5960
mkdir -p %{buildroot}%{_mandir}/man7
60-
#mkdir -p %{buildroot}%{_mandir}/man8
61+
mkdir -p %{buildroot}%{_mandir}/man8
6162

6263
# test engine itself
6364
mkdir -p %{buildroot}/usr/lib/%{name}
@@ -66,18 +67,20 @@ install -m 0644 test/saphana_sr_test.py %{buildroot}/usr/lib/%{name}
6667

6768
# test help programs, test loops and test calls
6869
install -m 0755 test/cs_* %{buildroot}/usr/bin
69-
install -m 0755 test/test_* %{buildroot}/usr/bin
7070
install -m 0755 test/callTest* %{buildroot}/usr/bin
7171
install -m 0755 test/loopTests* %{buildroot}/usr/bin
72+
install -m 0755 test/sct_* %{buildroot}/usr/bin
7273

7374
# test definitions
7475
pwd
7576
ls test/json
7677
cp -va test/json %{buildroot}/usr/share/%{name}
78+
cp -va test/www %{buildroot}/usr/share/%{name}
7779

7880
# manual pages
81+
install -m 0444 man-tester/*.5.gz %{buildroot}%{_mandir}/man5
7982
install -m 0444 man-tester/*.7.gz %{buildroot}%{_mandir}/man7
80-
#install -m 0444 man/*.8.gz %{buildroot}%{_mandir}/man8
83+
install -m 0444 man-tester/*.8.gz %{buildroot}%{_mandir}/man8
8184

8285
%files
8386
%defattr(-,root,root)
@@ -90,6 +93,5 @@ install -m 0444 man-tester/*.7.gz %{buildroot}%{_mandir}/man7
9093
#%dir %{_docdir}/%{name}
9194
%doc README.md
9295
%doc %{_mandir}/man*/*
93-
#%doc %{_mandir}/man8/*
9496

9597
%changelog

man-tester/SAPHanaSR-testCluster.8

Lines changed: 84 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Version: 1.001
22
.\"
3-
.TH SAPHanaSR-testCluster 8 "11 Nov 2023" "" "SAPHanaSR-angi"
3+
.TH SAPHanaSR-testCluster 8 "20 Nov 2023" "" "SAPHanaSR-angi"
44
.\"
55
.SH NAME
66
SAPHanaSR-testCluster \- Run functional testing for SAPHanaSR clusters.
@@ -10,39 +10,55 @@ SAPHanaSR-testCluster \- Run functional testing for SAPHanaSR clusters.
1010
.\"
1111
\fBSAPHanaSR-testCluster\fR [ --help | --version ]
1212
.br
13-
\fBSAPHanaSR-testCluster\fR
14-
13+
\fBSAPHanaSR-testCluster\fR \fIOPTION\fR [ \fIOPTION\fR ... ]
14+
.PP
1515
.\"
1616
.SH DESCRIPTION
1717
.\"
18-
SAPHanaSR-testCluster TODO
19-
18+
SAPHanaSR-testCluster is a tool to run one of the predefined test cases on a
19+
given test cluster. For that purpose it is called with options specifying the
20+
test case and the properties of the cluster to be tested.
21+
SAPHanaSR-testCluster can be seen as low-level command to be used in scripts
22+
and test automation frameworks.
2023
.PP
2124
.\"
2225
.SH OPTIONS
2326
.TP
24-
--testFile
25-
path to testcase description file
27+
--help
28+
print help message and exit.
2629
.TP
27-
--defaultChecksFile
28-
30+
--defaultsFile \fIFILE\fP
31+
path to defaults file.
2932
.TP
30-
--properties
31-
33+
--dumpFailures
34+
print failed checks per loop.
3235
.TP
33-
--remoteNode
34-
36+
--debug
37+
print and log debug messages.
3538
.TP
36-
--simulate
37-
39+
--logFile \fIFILE\fP
40+
path to defaults file.
3841
.TP
39-
--repeat
40-
42+
--printTestProperties
43+
print test properties and exit.
4144
.TP
42-
--dumpFailures
43-
45+
--properties \fIFILE\fP
46+
path to poperties file.
47+
.TP
48+
--remoteNode \fINODE\fP [ \fINODE\fP ... ]
49+
cluster nodes to use for ssh connection, must not be last option in cmdline.
50+
.TP
51+
--repeat \fIINTEGER\fP
52+
how often to repeat the test.
4453
.TP
45-
--logFile
54+
--simulate
55+
only simulate, dont call actions.
56+
.TP
57+
--testFile \fIFILE\fP
58+
path to testcase description file.
59+
.TP
60+
--version
61+
print version and exit.
4662

4763
.PP
4864
.\"
@@ -56,11 +72,55 @@ Usage, syntax or execution errors.
5672
.\"
5773
.SH EXAMPLES
5874
.\"
59-
75+
.PP
76+
\fB*\fR Running a very basic functional test.
77+
.PP
78+
The functional test "nop" is performed on the Linux cluster defined in
79+
properties_q42.json, nodes are node1 and node2.
80+
A dedicated working directory and logfile for this test is used.
81+
See also manual page SAPHanaSR-tester(7) and SAPHanaSR-tests-syntax(7).
82+
.PP
83+
.RS 2
84+
# mkdir ~/test_nop; cd ~/test_nop
85+
.br
86+
# export TROOT=/usr/share/SAPHanaSR-tester/json/angi-ScaleUp/
87+
.br
88+
# SAPHanaSR-testCluster \\
89+
.br
90+
--testFile $TROOT/nop.json \\
91+
.br
92+
--remoteNodes node1 node2 \\
93+
.br
94+
--defaultsFile $TROOT/defaults.json \\
95+
.br
96+
--properties ~/properties_q42.json \\
97+
.br
98+
--logFile test.log
99+
.RE
100+
.PP
101+
\fB*\fR Showing failed tests from logfile.
102+
.PP
103+
Logfile is test.log, shown are time, test ID, test case.
104+
.PP
105+
.RS 2
106+
# grep "TEST:.*FAILED" test.log | awk '{print $2,$3,$5}'
107+
.RE
108+
.PP
109+
\fB*\fR Showing details for a single test.
110+
.PP
111+
Test ID is 8585, logfile is test.log, debug output is omitted.
112+
.PP
113+
.RS 2
114+
# grep "\\[8585\\]" test.log | grep -v "DEBUG:"
115+
.RE
60116
.PP
61117
.\"
62118
.SH FILES
63119
.\"
120+
.TP
121+
/usr/bin/SAPHanaSR-testCluster
122+
the program itself.
123+
.TP
64124
/usr/share/SAPHanaSR-tester/json/angi-ScaleUp/
65125
functional tests for SAPHanaSR-angi scale-up scenarios.
66126
.TP
@@ -98,9 +158,10 @@ Please report any other feedback and suggestions to feedback@suse.com.
98158
.PP
99159
.\"
100160
.SH SEE ALSO
101-
\fBSAPHanaSR-tester\fP(7) ,
161+
\fBSAPHanaSR-tester\fP(7) , \fBSAPHanaSR-tests-syntax\fP(7) ,
102162
\fBSAPHanaSR-tests-angi-ScaleUp\fP(7) , \fBSAPHanaSR-tests-angi-ScaleOut\fP(7) ,
103-
\fBSAPHanaSR-angi\fP(7) , \fBSAPHanaSR-showAttr\fP(8) , \fBcrm_mon\fP(8)
163+
\fBSAPHanaSR-angi\fP(7) , \fBSAPHanaSR-showAttr\fP(8) ,
164+
\fBcrm_mon\fP(8) , \fBcrm\fP(8) , \fBcs_clusterstate\fP(8)
104165
.PP
105166
.\"
106167
.SH AUTHORS

0 commit comments

Comments
 (0)