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
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"@odata.type": "#Memory.v1_24_0.Memory",
|
||||
"Id": "DIMM1",
|
||||
"Name": "DIMM Slot 1",
|
||||
"RankCount": 2,
|
||||
"MaxTDPMilliWatts": [
|
||||
12000
|
||||
],
|
||||
"CapacityMiB": 32768,
|
||||
"DataWidthBits": 64,
|
||||
"BusWidthBits": 72,
|
||||
"ErrorCorrection": "MultiBitECC",
|
||||
"MemoryLocation": {
|
||||
"Socket": 1,
|
||||
"MemoryController": 1,
|
||||
"Channel": 1,
|
||||
"Slot": 1
|
||||
},
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "DIMM 1",
|
||||
"LocationType": "Slot",
|
||||
"LocationOrdinalValue": 0
|
||||
}
|
||||
},
|
||||
"MemoryType": "DRAM",
|
||||
"MemoryDeviceType": "DDR4",
|
||||
"BaseModuleType": "RDIMM",
|
||||
"MemoryMedia": [
|
||||
"DRAM"
|
||||
],
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"EnvironmentMetrics": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM1/EnvironmentMetrics"
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM1",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"@odata.type": "#Memory.v1_24_0.Memory",
|
||||
"Id": "DIMM2",
|
||||
"Name": "DIMM Slot 2",
|
||||
"RankCount": 2,
|
||||
"MaxTDPMilliWatts": [
|
||||
12000
|
||||
],
|
||||
"CapacityMiB": 32768,
|
||||
"DataWidthBits": 64,
|
||||
"BusWidthBits": 72,
|
||||
"ErrorCorrection": "MultiBitECC",
|
||||
"MemoryLocation": {
|
||||
"Socket": 1,
|
||||
"MemoryController": 1,
|
||||
"Channel": 1,
|
||||
"Slot": 2
|
||||
},
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "DIMM 2",
|
||||
"LocationType": "Slot",
|
||||
"LocationOrdinalValue": 1
|
||||
}
|
||||
},
|
||||
"MemoryType": "DRAM",
|
||||
"MemoryDeviceType": "DDR4",
|
||||
"BaseModuleType": "RDIMM",
|
||||
"MemoryMedia": [
|
||||
"DRAM"
|
||||
],
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"EnvironmentMetrics": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM2/EnvironmentMetrics"
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM2",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"@odata.type": "#Memory.v1_24_0.Memory",
|
||||
"Id": "DIMM3",
|
||||
"Name": "DIMM Slot 3",
|
||||
"RankCount": 2,
|
||||
"MaxTDPMilliWatts": [
|
||||
12000
|
||||
],
|
||||
"CapacityMiB": 32768,
|
||||
"DataWidthBits": 64,
|
||||
"BusWidthBits": 72,
|
||||
"ErrorCorrection": "MultiBitECC",
|
||||
"MemoryLocation": {
|
||||
"Socket": 2,
|
||||
"MemoryController": 2,
|
||||
"Channel": 1,
|
||||
"Slot": 3
|
||||
},
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "DIMM 3",
|
||||
"LocationType": "Slot",
|
||||
"LocationOrdinalValue": 2
|
||||
}
|
||||
},
|
||||
"MemoryType": "DRAM",
|
||||
"MemoryDeviceType": "DDR4",
|
||||
"BaseModuleType": "RDIMM",
|
||||
"MemoryMedia": [
|
||||
"DRAM"
|
||||
],
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"EnvironmentMetrics": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM3/EnvironmentMetrics"
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM3",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"@odata.type": "#Memory.v1_24_0.Memory",
|
||||
"Id": "DIMM4",
|
||||
"Name": "DIMM Slot 4",
|
||||
"MemoryLocation": {
|
||||
"Socket": 2,
|
||||
"MemoryController": 2,
|
||||
"Channel": 1,
|
||||
"Slot": 4
|
||||
},
|
||||
"Location": {
|
||||
"PartLocation": {
|
||||
"ServiceLabel": "DIMM 4",
|
||||
"LocationType": "Slot",
|
||||
"LocationOrdinalValue": 3
|
||||
}
|
||||
},
|
||||
"Status": {
|
||||
"State": "Absent"
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM4",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"@odata.type": "#MemoryCollection.MemoryCollection",
|
||||
"Name": "Memory Module Collection",
|
||||
"Members@odata.count": 4,
|
||||
"Members": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM3"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory/DIMM4"
|
||||
}
|
||||
],
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory",
|
||||
"@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