Add DMTF mockup fixtures and test helpers
Unmodified files from DMTF Redfish-Publications (public-rackmount1, public-localstorage, public-telemetry), only those the tests use, each set with DMTF's BSD-3-Clause license and a COMMANDS.txt naming the source commit and request paths. conftest.py loads them by request path and serves a mockup over mocked HTTP, with a SessionService that hands out a token, for the transport tests.
This commit is contained in:
77 files changed
+4051
No files matched your search
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"@odata.type": "#Power.v1_7_3.Power",
|
||||
"Id": "Power",
|
||||
"Name": "Power",
|
||||
"PowerControl": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/PowerControl/0",
|
||||
"MemberId": "0",
|
||||
"Name": "System Input Power",
|
||||
"PowerConsumedWatts": 344,
|
||||
"PowerRequestedWatts": 800,
|
||||
"PowerAvailableWatts": 0,
|
||||
"PowerCapacityWatts": 800,
|
||||
"PowerAllocatedWatts": 800,
|
||||
"PowerMetrics": {
|
||||
"IntervalInMin": 30,
|
||||
"MinConsumedWatts": 271,
|
||||
"MaxConsumedWatts": 489,
|
||||
"AverageConsumedWatts": 319
|
||||
},
|
||||
"PowerLimit": {
|
||||
"LimitInWatts": 500,
|
||||
"LimitException": "LogEventOnly",
|
||||
"CorrectionInMs": 50
|
||||
},
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
],
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Voltages": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/Voltages/0",
|
||||
"MemberId": "0",
|
||||
"Name": "VRM1 Voltage",
|
||||
"SensorNumber": 11,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"ReadingVolts": 12,
|
||||
"UpperThresholdNonCritical": 12.5,
|
||||
"UpperThresholdCritical": 13,
|
||||
"UpperThresholdFatal": 15,
|
||||
"LowerThresholdNonCritical": 11.5,
|
||||
"LowerThresholdCritical": 11,
|
||||
"LowerThresholdFatal": 10,
|
||||
"MinReadingRange": 0,
|
||||
"MaxReadingRange": 20,
|
||||
"PhysicalContext": "VoltageRegulator",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/Voltages/1",
|
||||
"MemberId": "1",
|
||||
"Name": "VRM2 Voltage",
|
||||
"SensorNumber": 12,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"ReadingVolts": 5,
|
||||
"UpperThresholdNonCritical": 5.5,
|
||||
"UpperThresholdCritical": 7,
|
||||
"LowerThresholdNonCritical": 4.75,
|
||||
"LowerThresholdCritical": 4.5,
|
||||
"MinReadingRange": 0,
|
||||
"MaxReadingRange": 20,
|
||||
"PhysicalContext": "VoltageRegulator",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PowerSupplies": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/PowerSupplies/0",
|
||||
"MemberId": "0",
|
||||
"Name": "Power Supply Bay",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "Warning"
|
||||
},
|
||||
"PowerSupplyType": "AC",
|
||||
"LineInputVoltageType": "ACWideRange",
|
||||
"LineInputVoltage": 120,
|
||||
"PowerCapacityWatts": 800,
|
||||
"LastPowerOutputWatts": 325,
|
||||
"Model": "499253-B21",
|
||||
"Manufacturer": "ManufacturerName",
|
||||
"FirmwareVersion": "1.00",
|
||||
"SerialNumber": "1Z0000001",
|
||||
"PartNumber": "0000001A3A",
|
||||
"SparePartNumber": "0000001A3A",
|
||||
"InputRanges": [
|
||||
{
|
||||
"InputType": "AC",
|
||||
"MinimumVoltage": 100,
|
||||
"MaximumVoltage": 120,
|
||||
"OutputWattage": 800
|
||||
},
|
||||
{
|
||||
"InputType": "AC",
|
||||
"MinimumVoltage": 200,
|
||||
"MaximumVoltage": 240,
|
||||
"OutputWattage": 1300
|
||||
}
|
||||
],
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
Reference in new issue
Block a user