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
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"@odata.type": "#Fan.v1_6_0.Fan",
|
||||
"Id": "Bay1",
|
||||
"Name": "Fan Bay 1",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"PhysicalContext": "Chassis",
|
||||
"Model": "RKS-440DC",
|
||||
"Manufacturer": "Contoso Fans",
|
||||
"PartNumber": "23456-133",
|
||||
"SparePartNumber": "93284-133",
|
||||
"LocationIndicatorActive": true,
|
||||
"HotPluggable": true,
|
||||
"SpeedPercent": {
|
||||
"Reading": 45,
|
||||
"SpeedRPM": 2200,
|
||||
"DataSourceUri": "/redfish/v1/Chassis/1U/Sensors/FanBay1"
|
||||
},
|
||||
"RatedSpeedRPM": 4900,
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "Chassis Fan Bay 1",
|
||||
"LocationType": "Bay",
|
||||
"LocationOrdinalValue": 0
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/Bay1",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"@odata.type": "#Fan.v1_6_0.Fan",
|
||||
"Id": "Bay2",
|
||||
"Name": "Fan Bay 2",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"PhysicalContext": "Chassis",
|
||||
"Model": "RKS-440DC",
|
||||
"Manufacturer": "Contoso Fans",
|
||||
"PartNumber": "23456-133",
|
||||
"SparePartNumber": "93284-133",
|
||||
"LocationIndicatorActive": false,
|
||||
"HotPluggable": true,
|
||||
"SpeedPercent": {
|
||||
"Reading": 45,
|
||||
"SpeedRPM": 2400,
|
||||
"DataSourceUri": "/redfish/v1/Chassis/1U/Sensors/FanBay2"
|
||||
},
|
||||
"RatedSpeedRPM": 4900,
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "Chassis Fan Bay 2",
|
||||
"LocationType": "Bay",
|
||||
"LocationOrdinalValue": 1
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/Bay2",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"@odata.type": "#Fan.v1_6_0.Fan",
|
||||
"Id": "CPU1",
|
||||
"Name": "Fan for CPU 1",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"PhysicalContext": "CPU",
|
||||
"Model": "RKS-440DC",
|
||||
"Manufacturer": "Contoso Fans",
|
||||
"PartNumber": "23456-133",
|
||||
"SparePartNumber": "93284-133",
|
||||
"LocationIndicatorActive": false,
|
||||
"HotPluggable": false,
|
||||
"SpeedPercent": {
|
||||
"Reading": 45,
|
||||
"SpeedRPM": 1490,
|
||||
"DataSourceUri": "/redfish/v1/Chassis/1U/Sensors/CPUFan1"
|
||||
},
|
||||
"RatedSpeedRPM": 3300,
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "CPU #1 Fan",
|
||||
"LocationType": "Bay",
|
||||
"LocationOrdinalValue": 0
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/CPU1",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"@odata.type": "#Fan.v1_6_0.Fan",
|
||||
"Id": "CPU2",
|
||||
"Name": "Fan for CPU 2",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"PhysicalContext": "CPU",
|
||||
"Model": "RKS-440DC",
|
||||
"Manufacturer": "Contoso Fans",
|
||||
"PartNumber": "23456-133",
|
||||
"SparePartNumber": "93284-133",
|
||||
"LocationIndicatorActive": false,
|
||||
"HotPluggable": false,
|
||||
"SpeedPercent": {
|
||||
"Reading": 45,
|
||||
"SpeedRPM": 1490,
|
||||
"DataSourceUri": "/redfish/v1/Chassis/1U/Sensors/CPUFan2"
|
||||
},
|
||||
"RatedSpeedRPM": 3300,
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "CPU #2 Fan",
|
||||
"LocationType": "Bay",
|
||||
"LocationOrdinalValue": 1
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/CPU2",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"@odata.type": "#FanCollection.FanCollection",
|
||||
"Name": "Fan Club",
|
||||
"Members@odata.count": 4,
|
||||
"Members": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/Bay1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/Bay2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/CPU1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans/CPU2"
|
||||
}
|
||||
],
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/ThermalSubsystem/Fans",
|
||||
"@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