Skip to content

Commit ad42a99

Browse files
committed
Update package versions and script documentation (#100)
1 parent 2df9d03 commit ad42a99

File tree

8 files changed

+58
-18
lines changed

8 files changed

+58
-18
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4747

4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
49+
uses: github/codeql-action/init@07bb2b932c90fc1ec97637495e4072a0966fa74c # v3.28.20
5050
with:
5151
languages: ${{ matrix.language }}
5252

5353
- name: Autobuild
54-
uses: github/codeql-action/autobuild@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
54+
uses: github/codeql-action/autobuild@07bb2b932c90fc1ec97637495e4072a0966fa74c # v3.28.20
5555

5656
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
57+
uses: github/codeql-action/analyze@07bb2b932c90fc1ec97637495e4072a0966fa74c # v3.28.20
5858
with:
5959
category: "/language:${{matrix.language}}"

.github/workflows/ossf-scoreboard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
retention-days: 5
5151

5252
- name: "Upload to code-scanning"
53-
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
53+
uses: github/codeql-action/upload-sarif@07bb2b932c90fc1ec97637495e4072a0966fa74c # v3.28.20
5454
with:
5555
sarif_file: results.sarif

.github/workflows/trivy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
output: report-fs.sarif
3737

3838
- name: Upload Trivy report (fs) GitHub Security
39-
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
39+
uses: github/codeql-action/upload-sarif@07bb2b932c90fc1ec97637495e4072a0966fa74c # v3.28.20
4040
with:
4141
sarif_file: report-fs.sarif
4242
category: 'fs'

requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
ansible-compat==25.6.0
88
# via ansible-lint
9-
ansible-core==2.17.12
9+
ansible-core==2.17.13
1010
# via
1111
# -r requirements.in
1212
# ansible-compat
@@ -15,7 +15,7 @@ ansible-lint==25.6.1
1515
# via -r requirements.in
1616
ansible-runner==2.4.1
1717
# via -r requirements.in
18-
astroid==3.3.10
18+
astroid==3.3.11
1919
# via pylint
2020
attrs==25.3.0
2121
# via
@@ -30,15 +30,15 @@ azure-core==1.35.0
3030
# azure-mgmt-core
3131
# azure-storage-blob
3232
# azure-storage-queue
33-
azure-identity==1.23.0
33+
azure-identity==1.23.1
3434
# via
3535
# -r requirements.in
3636
# azure-kusto-data
37-
azure-kusto-data==5.0.4
37+
azure-kusto-data==5.0.5
3838
# via
3939
# -r requirements.in
4040
# azure-kusto-ingest
41-
azure-kusto-ingest==5.0.4
41+
azure-kusto-ingest==5.0.5
4242
# via -r requirements.in
4343
azure-mgmt-core==1.6.0
4444
# via azure-mgmt-network
@@ -58,7 +58,7 @@ black==25.1.0
5858
# ansible-lint
5959
bracex==2.6
6060
# via wcmatch
61-
certifi==2025.7.9
61+
certifi==2025.7.14
6262
# via requests
6363
cffi==1.17.1
6464
# via cryptography
@@ -68,7 +68,7 @@ click==8.2.1
6868
# via
6969
# -r requirements.in
7070
# black
71-
coverage[toml]==7.9.2
71+
coverage[toml]==7.10.0
7272
# via
7373
# -r requirements.in
7474
# pytest-cov
@@ -107,7 +107,7 @@ jinja2==3.1.6
107107
# ansible-core
108108
jmespath==1.0.1
109109
# via -r requirements.in
110-
jsonschema==4.24.0
110+
jsonschema==4.25.0
111111
# via
112112
# ansible-compat
113113
# ansible-lint
@@ -123,7 +123,7 @@ mccabe==0.7.0
123123
# via pylint
124124
mdurl==0.1.2
125125
# via markdown-it-py
126-
msal==1.32.3
126+
msal==1.33.0
127127
# via
128128
# azure-identity
129129
# azure-kusto-data

scripts/sap_automation_qa.sh

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ Options:
8484
--test_groups=GROUP Specify test group to run (e.g., HA_DB_HANA, HA_SCS)
8585
--test_cases=[case1,case2] Specify specific test cases to run (comma-separated, in brackets)
8686
--extra-vars=VAR Specify additional Ansible extra variables (e.g., --extra-vars='{"key":"value"}')
87-
--offline Run offline test cases using previously collected CIB data
87+
--offline Run offline test cases using previously collected CIB data.
88+
While running offline tests, the script will look for CIB data in
89+
WORKSPACES/SYSTEM/<SYSTEM_CONFIG_NAME>/offline_validation directory.
90+
Extra vars "ansible_os_family" required for offline mode
91+
(e.g., --extra-vars='{"ansible_os_family":"SUSE"}')
8892
-h, --help Show this help message
8993
9094
Examples:
@@ -94,6 +98,34 @@ Examples:
9498
$0 --test_groups=HA_DB_HANA --test_cases=[ha-config,primary-node-crash] --extra-vars='{"key":"value"}'
9599
$0 --test_groups=HA_DB_HANA --test_cases=[ha-config] --offline
96100
101+
Available Test Cases for groups:
102+
$0 --test_groups=HA_DB_HANA
103+
ha-config => High Availability configuration
104+
azure-lb => Azure Load Balancer
105+
resource-migration => Resource Migration
106+
primary-node-crash => Primary Node Crash
107+
block-network => Block Network
108+
primary-crash-index => Primary Crash Index
109+
primary-node-kill => Primary Node Kill
110+
primary-echo-b => Primary Echo B
111+
secondary-node-kill => Secondary Node Kill
112+
secondary-echo-b => Secondary Echo B
113+
fs-freeze => FS Freeze
114+
sbd-fencing => SBD Fencing
115+
secondary-crash-index => Secondary Crash Index
116+
$0 --test_groups=HA_SCS
117+
ha-config => High Availability configuration
118+
azure-lb => Azure Load Balancer
119+
sapcontrol-config => SAP Control Configuration
120+
ascs-migration => ASCS Migration
121+
block-network => Block Network
122+
kill-message-server => Kill Message Server
123+
kill-enqueue-server => Kill Enqueue Server
124+
kill-enqueue-replication => Kill Enqueue Replication
125+
kill-sapstartsrv-process => Kill SAP Start Service Process
126+
manual-restart => Manual Restart
127+
ha-failover-to-node => HA Failover to Secondary Node
128+
97129
Configuration is read from vars.yaml file.
98130
EOF
99131
}

src/module_utils/get_pcmk_properties.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,15 @@ def _create_parameter(
166166
if isinstance(expected_value, list):
167167
expected_value = expected_value[0] if expected_value else ""
168168
elif isinstance(expected_value, dict):
169-
expected_value = list(expected_value.values())[0] if expected_value else ""
169+
expected_value = (
170+
[
171+
item
172+
for val in expected_value.values()
173+
for item in (val if isinstance(val, list) else [val])
174+
]
175+
if expected_value
176+
else ""
177+
)
170178

171179
return Parameters(
172180
category=f"{category}_{subcategory}" if subcategory else category,

src/roles/ha_db_hana/tasks/files/constants.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ VALID_CONFIGS:
5050
stonith-timeout: ["900s", "900"]
5151
ISCSI:
5252
have-watchdog: "true"
53-
stonith-timeout: ["144", "144s"]
53+
stonith-timeout: ["210", "210s"]
5454

5555

5656
# === Resource Defaults ===

src/roles/ha_scs/tasks/files/constants.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ VALID_CONFIGS:
5858
stonith-timeout: ["900", "900s"]
5959
ISCSI:
6060
have-watchdog: "true"
61-
stonith-timeout: ["144", "144s"]
61+
stonith-timeout: ["210", "210s"]
6262

6363
# === Resource Defaults ===
6464
# cibadmin --query --scope resources

0 commit comments

Comments
 (0)