Replace Molecule Redfish component placeholder assertions with real tests
User Story:
As a developer, I want real test assertions for Redfish component so that Redfish operator functionality is validated
Problem Statement:
Redfish component tests don't validate hardware management operations, power control, or vendor-specific implementations (HPE iLO, Dell iDRAC).
Acceptance Criteria:
-
Redfish CRD creation validated with correct configuration -
Hardware discovery and inventory verified -
Power operations tested (on/off/reset) -
Boot order configuration validated -
Vendor detection working (HPE, Dell, Supermicro). -
IPMI fallback functionality tested -
Idempotency verified (no changes on second run)
Implementation Details:
Files to Modify:
-
molecule/default/tasks/redfish_test.yml
- Replace placeholder assertions with real tests -
molecule/default/vars/redfish_test_vars.yml
- Test data for different hardware vendors
Dependencies:
- python-redfish library (sushy)
- pyghmi for IPMI testing.
- kubernetes Python client
Additional Notes:
Test should validate Redfish API connectivity, verify hardware information retrieval, test power state management, and ensure compatibility with different BMC implementations.
Edited by Lam Do