openbmc-test-automation icon indicating copy to clipboard operation
openbmc-test-automation copied to clipboard

testing test_powersupply_reading

Open justin0309 opened this issue 1 year ago • 4 comments

I'm testing test_powersupply_readings.robot

It is necessary to read powerinputwatts and poweroutputwatts, but I refer to the correction of the issue and set LABEL_power1=psu1_input, which contains the string of input, but powersupply still cannot be displayed.

Expected to appear: image

actually: curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Power/

image

I referred to /meta-inspur/meta-fp5280g2/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/[email protected]

justin0309 avatar Nov 17 '23 07:11 justin0309

@sarandev3 can u take a look

gkeishin avatar Nov 17 '23 09:11 gkeishin

@justin0309 This test was written based on the Open power Witherspoon system.. so it is likely that the power module implementation could be the reason why the redfish objects are not showing/populating those power metrics data.

Probably @spinler can help you there with your queries on this one.

gkeishin avatar Nov 17 '23 10:11 gkeishin

@gkeishin 1.Is the Powersubsystem in the test items of Systems.Test Powersubsystem Settings also for the Open power Witherspoon system? 2.According to this situation, is it only a machine that supports IBM? Or what can I do to pass these two tests? 3. test_alternate_fan_settings This test seems to be also for Witherspoon system. 4. Or is there somewhere that can tell me that these test projects only support IBM systems?

justin0309 avatar Nov 20 '23 00:11 justin0309

The test should be generic enough to run on all systems but we will need to tweak it to make it work based on the systems configuration you are working with since you know better on the system support and what is needed. You can take a look and see how to plugin those extra changes to it or write a new one by taking a look at the existing test cases..

Mostly the openpower/ directory are POWER-based systems specifics in general like Witherspoon.

gkeishin avatar Nov 23 '23 11:11 gkeishin