Skip to content

Commit 7ece21e

Browse files
committed
Extend Redfish integration tests for new checks
Add expected check commands for power consumption, power redundancy, storage battery (Dell/HPE) and PDU status (Raritan) to the integration test assertions. JIRA-Ref: CMK-32388 Change-Id: Iabce5a6786416daa7babc76ebe35d7fb7783177c
1 parent ce51862 commit 7ece21e

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

tests/integration_redfish/test_dell_ok.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ def test_plugins(site: Site, redfish_hosts: Hosts) -> None:
5252
"check_mk-redfish_memory",
5353
"check_mk-redfish_memory_summary",
5454
"check_mk-redfish_networkadapters",
55+
"check_mk-redfish_power_consumption",
56+
"check_mk-redfish_power_redundancy",
5557
"check_mk-redfish_processors",
5658
"check_mk-redfish_psu",
5759
"check_mk-redfish_storage",
60+
"check_mk-redfish_storage_battery",
5861
"check_mk-redfish_system",
5962
"check_mk-redfish_temperatures",
6063
"check_mk-redfish_voltage",

tests/integration_redfish/test_hpe_ok.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def test_plugins(site: Site, redfish_hosts: Hosts) -> None:
5252
"check_mk-redfish_memory",
5353
"check_mk-redfish_memory_summary",
5454
"check_mk-redfish_networkadapters",
55+
"check_mk-redfish_power_consumption",
56+
"check_mk-redfish_power_redundancy",
5557
"check_mk-redfish_processors",
5658
"check_mk-redfish_psu",
5759
"check_mk-redfish_storage",

tests/integration_redfish/test_raritan_ok.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ def test_plugins(site: Site, redfish_hosts: Hosts) -> None:
4646

4747
assert not {s for s in services if s.state != 0}
4848
assert {s.check_command for s in services} >= {
49-
"check_mk-redfish_system",
49+
"check_mk-redfish_mains",
5050
"check_mk-redfish_outlets",
51+
"check_mk-redfish_pdus",
5152
"check_mk-redfish_sensors",
52-
"check_mk-redfish_mains",
53+
"check_mk-redfish_system",
5354
}

0 commit comments

Comments
 (0)