Last active
June 25, 2019 17:04
-
-
Save smccarney/accc500b58fed80b711c65520cc7aafc to your computer and use it in GitHub Desktop.
Test Plan: Check inventory item for sensor status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Plan: Sensor status based on inventory item status | |
------------------------------------------------------- | |
x Run Redfish Validator | |
x Verify no new errors | |
x Manually verify Redfish output from each chassis | |
x At standby | |
x chassis | |
x Power | |
x Thermal | |
x motherboard | |
x Power | |
x Thermal | |
x powersupply0 | |
x Power | |
x Thermal | |
x powersupply1 | |
x Power | |
x Thermal | |
x At runtime | |
x chassis | |
x Power | |
x Thermal | |
x motherboard | |
x Power | |
x Thermal | |
x powersupply0 | |
x Power | |
x Thermal | |
x powersupply1 | |
x Power | |
x Thermal | |
x redfish-core/lib/sensors.hpp | |
x getChassis() | |
x Verify finds all sensors in chassis using new association name | |
"all_sensors" | |
x getObjectManagerPaths() | |
x Verify same mappings created from connection to object path | |
x findSensorJson() | |
x Test where sensorName passed in has no "/" | |
x Verify correctly finds sensor base name | |
x Test where sensor found in Temperatures group | |
x Test where sensor found in Fans group | |
x Test where sensor found in Voltages group | |
x Test where sensor found in PowerSupplies group | |
x Test where sensor not found in any group | |
x Test where group does not exist | |
x Test where child of group does not have MemberId property | |
x Test where get_ptr() to obtain MemberId property returns nullptr | |
x updateSensorStatus() | |
x Test where unable to find sensor JSON | |
x Test where Inventory.Item interface is not found | |
x Test wwhere Present property of Inventory.Item interface is not found | |
x Test where get_ptr() to obtain Present property returns nullptr | |
x Test where Present is true | |
x Verify Status->State is not modified | |
x Test where Present is false | |
x Verify Status->State set to "Absent" | |
x Test where OperationalStatus interface is not found | |
x Test wwhere Functional property of OperationalStatus interface is not found | |
x Test where get_ptr() to obtain Functional property returns nullptr | |
x Test where Functional is true | |
x Verify Status->Health is not modified | |
x Test where Functional is false | |
x Verify Status->Health set to "Critical" | |
x getInventoryItemsStatus() | |
x Verify enter log message | |
x Verify loops through all connections | |
x Response handler | |
x Verify enter log message | |
x Test where GetManagedObjects fails with a non-zero error code | |
x Verify log message | |
x Verify Redfish output contains correct error information | |
x Test where no sensors are associated with a returned object path | |
x Test where multiple sensors are associated with a returned object path | |
x Verify exit log message | |
x Verify selects correct object path for GetManagedObjects call | |
x Verify exit log message | |
x getInventoryItemsConnections() | |
x Verify enter log message | |
x Response handler | |
x Verify enter log message | |
x Test where GetSubTree fails with a non-zero error code | |
x Verify log message | |
x Verify Redfish output contains correct error information | |
x Test where returned object path is not one of the inventory items needed | |
x Test where returned object path is one of the inventory items needed | |
x Verify all connections stored in set | |
x Verify exit log message | |
x Verify exit log message | |
x getInventoryItems() | |
x Verify enter log message | |
x Response handler | |
x Verify enter log message | |
x Test where GetManagedObjects fails with a non-zero error code | |
x Verify log message | |
x Verify Redfish output contains correct error information | |
x Test where returned object path is not a sensor->inventory association | |
x Test where returned object path is a sensor->inventory association | |
x Not for one of the specified sensors | |
x For one of the specified sensors | |
x Test where Association interface not found | |
x Test where endpoints property not found | |
x Test where get_if() to obtain endpoints property returns nullptr | |
x Test where endpoints property is an empty vector | |
x Verify that inventory item in endpoints property added to map | |
x Verify that callback not called if no inventory items found | |
x Verify that callback called if inventory items found | |
x Verify exit log message | |
x Verify selects correct object path for GetManagedObjects call | |
x Verify exit log message | |
x checkInventoryItemsStatus() | |
x Verify enter log message | |
x getInventoryItemsCb | |
x Verify enter log message | |
x Verify exit log message | |
x getInventoryItemsConnectionsCb | |
x Verify enter log message | |
x Verify exit log message | |
x Verify exit log message | |
x getSensorData() | |
x Verify objectMgrPaths successfully passed to checkInventoryItemsStatus() | |
x Verify checkInventoryItemsStatus() is called | |
x Only called once | |
x Called after all sensor data is obtained and stored in JSON | |
x Verify populateFanRedundancy() still called when providing Thermal sensors | |
x Verify finds same object path for GetManagedObjects call | |
x getChassisData() | |
x Verify getSensorData() still finds object paths for GetManagedObjects calls | |
x associations.json | |
x Verify "chassis" <-> "all_sensors" associations | |
x chassis | |
x powersupply0 | |
x powersupply1 | |
x Verify "inventory" <-> "sensors" associations | |
x powersupply0 | |
x powersupply1 | |
x fan0 | |
x fan3 | |
x motherboard | |
x cpu0/core0 | |
x cpu1/core4 | |
x dimm1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment