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,35 @@
{
"@odata.type": "#SoftwareInventory.v1_15_0.SoftwareInventory",
"Id": "BIOS",
"Name": "Contoso BIOS Firmware",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Updateable": true,
"Manufacturer": "Contoso",
"ReleaseDate": "2017-12-06T12:00:00Z",
"Version": "P79 v1.45",
"SoftwareId": "FEE82A67-6CE2-4625-9F44-237AD2402C28",
"LowestSupportedVersion": "P79 v1.10",
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Bios"
}
],
"ImageState": "Active",
"Active": true,
"Staged": false,
"Armed": false,
"Links": {
"ActiveTargets": [
{
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Bios"
}
],
"StagedTargets": [],
"ArmedTargets": []
},
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/BIOS",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
@@ -0,0 +1,48 @@
{
"@odata.type": "#SoftwareInventory.v1_15_0.SoftwareInventory",
"Id": "BMC",
"Name": "Contoso BMC Firmware",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Updateable": true,
"Manufacturer": "Contoso",
"ReleaseDate": "2017-08-22T12:00:00Z",
"Version": "1.45.455b66-rev4",
"SoftwareId": "1624A9DF-5E13-47FC-874A-DF3AFF143089",
"LowestSupportedVersion": "1.30.367a12-rev1",
"UefiDevicePaths": [
"BMC(0x1,0x0ABCDEF)"
],
"AdditionalVersions": {
"Bootloader": "v2022.01",
"Kernel": "Linux 5.13.0-30-generic arm71",
"Oem": {
"Contoso": {
"@odata.type": "#ContosoSoftwareInventory.v1_0_0.AdditionalVersions",
"ManagementApp": "1.30"
}
}
},
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Managers/BMC"
}
],
"ImageState": "Active",
"Active": true,
"Staged": false,
"Armed": false,
"Links": {
"ActiveTargets": [
{
"@odata.id": "/redfish/v1/Managers/BMC"
}
],
"StagedTargets": [],
"ArmedTargets": []
},
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/BMC",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
@@ -0,0 +1,34 @@
{
"@odata.type": "#SoftwareInventory.v1_15_0.SoftwareInventory",
"Id": "SS",
"Name": "Contoso Simple Storage Firmware",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Updateable": true,
"Manufacturer": "Contoso",
"ReleaseDate": "2021-10-18T12:00:00Z",
"Version": "2.50",
"LowestSupportedVersion": "2.30.rev1",
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Systems/437XR1138R2/SimpleStorage/1"
}
],
"ImageState": "Active",
"Active": true,
"Staged": false,
"Armed": false,
"Links": {
"ActiveTargets": [
{
"@odata.id": "/redfish/v1/Systems/437XR1138R2/SimpleStorage/1"
}
],
"StagedTargets": [],
"ArmedTargets": []
},
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/SS",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
@@ -0,0 +1,18 @@
{
"@odata.type": "#SoftwareInventoryCollection.SoftwareInventoryCollection",
"Name": "Firmware Collection",
"Members@odata.count": 2,
"Members": [
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/BMC"
},
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/SS"
},
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/BIOS"
}
],
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}