openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

testing test_powersupply_reading #2227

Open justin0309 opened 9 months ago

justin0309 commented 9 months ago

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/power-supply@58.conf

gkeishin commented 9 months ago

@sarandev3 can u take a look

gkeishin commented 9 months ago

@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.

justin0309 commented 9 months ago

@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?

  1. test_alternate_fan_settings This test seems to be also for Witherspoon system.
  2. Or is there somewhere that can tell me that these test projects only support IBM systems?
gkeishin commented 8 months ago

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.