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:
Christian Manivong committed 2026-10-12 23:42:14 +00:00
1 parent 17d515d035
commit c8bcd5ace1
77 files changed
+4051

No files matched your search

@@ -0,0 +1,104 @@
{
"@odata.type": "#Chassis.v1_29_0.Chassis",
"Id": "1U",
"Name": "Computer System Chassis",
"ChassisType": "RackMount",
"AssetTag": "Portland-45Z-2381",
"Manufacturer": "Contoso",
"Model": "3500RX",
"SKU": "8675309",
"SerialNumber": "437XR1138R2",
"PartNumber": "224071-J23",
"PowerState": "On",
"LocationIndicatorActive": true,
"RackUnits": "EIA_310",
"HeightRackUnits": 1,
"HeightMm": 44.45,
"WidthMm": 431.8,
"DepthMm": 711,
"WeightKg": 15.31,
"Location": {
"PhysicalAddress": {
"Country": "US",
"StateOrProvince": "Oregon",
"City": "Portland",
"StreetAddress": "1001 SW 5th Avenue",
"PostalCode": "97204",
"ISOCountryCode": "USA",
"ISOSubdivisionCode": "OR"
},
"Placement": {
"Row": "North",
"Rack": "WEB43",
"RackOffsetUnits": "EIA_310",
"RackOffset": 12,
"Room": "35",
"FacilityName": "Onsite-Main"
}
},
"Status": {
"State": "Enabled",
"Health": "OK"
},
"ThermalSubsystem": {
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem"
},
"PowerSubsystem": {
"@odata.id": "/redfish/v1/Chassis/1U/PowerSubsystem"
},
"EnvironmentMetrics": {
"@odata.id": "/redfish/v1/Chassis/1U/EnvironmentMetrics"
},
"Sensors": {
"@odata.id": "/redfish/v1/Chassis/1U/Sensors"
},
"Controls": {
"@odata.id": "/redfish/v1/Chassis/1U/Controls"
},
"TrustedComponents": {
"@odata.id": "/redfish/v1/Chassis/1U/TrustedComponents"
},
"Thermal@Redfish.Deprecated": "Please migrate to use /redfish/v1/Chassis/1U/ThermalSubsystem",
"Thermal": {
"@odata.id": "/redfish/v1/Chassis/1U/Thermal"
},
"Power@Redfish.Deprecated": "Please migrate to use /redfish/v1/Chassis/1U/PowerSubsystem",
"Power": {
"@odata.id": "/redfish/v1/Chassis/1U/Power"
},
"Links": {
"ComputerSystems": [
{
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
}
],
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/BMC"
}
],
"ManagersInChassis": [
{
"@odata.id": "/redfish/v1/Managers/BMC"
}
]
},
"Actions": {
"#Chassis.Reset": {
"target": "/redfish/v1/Chassis/1U/Actions/Chassis.Reset",
"ResetType@Redfish.AllowableValues": [
"On",
"ForceOff",
"GracefulShutdown",
"GracefulRestart",
"ForceRestart",
"Nmi",
"ForceOn",
"PushPowerButton",
"FullPowerCycle"
]
}
},
"@odata.id": "/redfish/v1/Chassis/1U",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}