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
+48
@@ -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."
|
||||
}
|
||||
Reference in new issue
Block a user