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
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"@odata.type": "#ComputerSystem.v1_29_0.ComputerSystem",
|
||||
"Id": "437XR1138R2",
|
||||
"Name": "WebFrontEnd483",
|
||||
"SystemType": "Physical",
|
||||
"AssetTag": "Chicago-45Z-2381",
|
||||
"Manufacturer": "Contoso",
|
||||
"Model": "3500",
|
||||
"SubModel": "RX",
|
||||
"SKU": "8675309",
|
||||
"SerialNumber": "437XR1138R2",
|
||||
"PartNumber": "224071-J23",
|
||||
"Description": "Web Front End node",
|
||||
"UUID": "38947555-7742-3448-3784-823347823834",
|
||||
"HostName": "web483",
|
||||
"BootImagePushURI": "/redfish/v1/Systems/437XR1138R2/BootImagePushURI",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK",
|
||||
"HealthRollup": "Warning",
|
||||
"Conditions": [
|
||||
{
|
||||
"MessageId": "Sensor.1.0.ReadingAboveUpperCautionThreshold",
|
||||
"Timestamp": "2024-08-12T12:25:00-05:00",
|
||||
"Message": "Sensor 'CPU1 Temp' reading of 44 (Cel) is above the 42 upper caution threshold.",
|
||||
"Severity": "Warning",
|
||||
"MessageArgs": [
|
||||
"CPU1 Temp",
|
||||
"44",
|
||||
"Cel",
|
||||
"42"
|
||||
],
|
||||
"OriginOfCondition": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Sensors/CPU1Temp"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"HostingRoles": [
|
||||
"ApplicationServer"
|
||||
],
|
||||
"IndicatorLED": "Off",
|
||||
"PowerState": "On",
|
||||
"Boot": {
|
||||
"BootSourceOverrideEnabled": "Once",
|
||||
"BootSourceOverrideTarget": "Pxe",
|
||||
"BootSourceOverrideTarget@Redfish.AllowableValues": [
|
||||
"None",
|
||||
"Pxe",
|
||||
"Cd",
|
||||
"Usb",
|
||||
"Hdd",
|
||||
"BiosSetup",
|
||||
"Utilities",
|
||||
"Diags",
|
||||
"SDCard",
|
||||
"UefiTarget"
|
||||
],
|
||||
"BootSourceOverrideMode": "UEFI",
|
||||
"UefiTargetBootSourceOverride": "/0x31/0x33/0x01/0x01"
|
||||
},
|
||||
"TrustedModules": [
|
||||
{
|
||||
"FirmwareVersion": "1.13b",
|
||||
"InterfaceType": "TPM1_2",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Oem": {
|
||||
"Contoso": {
|
||||
"@odata.type": "#Contoso.ComputerSystem",
|
||||
"ProductionLocation": {
|
||||
"FacilityName": "PacWest Production Facility",
|
||||
"Country": "USA"
|
||||
}
|
||||
},
|
||||
"Chipwise": {
|
||||
"@odata.type": "#Chipwise.ComputerSystem",
|
||||
"Style": "Executive"
|
||||
}
|
||||
},
|
||||
"BootProgress": {
|
||||
"LastState": "OSRunning",
|
||||
"LastStateTime": "2021-03-13T04:14:13+06:00",
|
||||
"LastBootTimeSeconds": 676
|
||||
},
|
||||
"LastResetTime": "2021-03-13T04:02:57+06:00",
|
||||
"BiosVersion": "P79 v1.45 (12/06/2017)",
|
||||
"ProcessorSummary": {
|
||||
"Count": 2,
|
||||
"Model": "Multi-Core Intel(R) Xeon(R) processor 7xxx Series",
|
||||
"LogicalProcessorCount": 16,
|
||||
"CoreCount": 8,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK"
|
||||
}
|
||||
},
|
||||
"MemorySummary": {
|
||||
"TotalSystemMemoryGiB": 96,
|
||||
"TotalSystemPersistentMemoryGiB": 0,
|
||||
"MemoryMirroring": "None",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK"
|
||||
}
|
||||
},
|
||||
"GraphicalConsole": {
|
||||
"MaxConcurrentSessions": 4,
|
||||
"VNC": {
|
||||
"ServiceEnabled": true,
|
||||
"Port": 5900,
|
||||
"HostName": "10.1.2.3",
|
||||
"AuthenticationMethod": "ExplicitLogin",
|
||||
"SupportedAccessModes": [
|
||||
"ReadWrite",
|
||||
"ReadOnly"
|
||||
],
|
||||
"AllowsSharedAccess": true,
|
||||
"SupportedEncodings": [
|
||||
"Raw",
|
||||
"Tight",
|
||||
"ZRLE"
|
||||
],
|
||||
"SupportsOneTimePassword": true,
|
||||
"SupportsPersistentPassword": true
|
||||
},
|
||||
"HTML5": {
|
||||
"ServiceEnabled": true,
|
||||
"Port": 443,
|
||||
"HostName": "bmc.example.com",
|
||||
"ConsoleURI": "https://bmc.example.com/console",
|
||||
"AuthenticationMethod": "ExplicitLogin",
|
||||
"SupportedAccessModes": [
|
||||
"ReadWrite"
|
||||
],
|
||||
"AllowsSharedAccess": false,
|
||||
"SupportsOneTimeURL": true
|
||||
},
|
||||
"KVMIP": {
|
||||
"ServiceEnabled": false,
|
||||
"Port": 7000,
|
||||
"HostName": "10.1.2.3",
|
||||
"AuthenticationMethod": "ExplicitLogin",
|
||||
"SupportedAccessModes": [
|
||||
"ReadWrite"
|
||||
],
|
||||
"AllowsSharedAccess": false
|
||||
}
|
||||
},
|
||||
"Bios": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Bios"
|
||||
},
|
||||
"SecureBoot": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/SecureBoot"
|
||||
},
|
||||
"Processors": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors"
|
||||
},
|
||||
"Memory": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory"
|
||||
},
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/EthernetInterfaces"
|
||||
},
|
||||
"SimpleStorage": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/SimpleStorage"
|
||||
},
|
||||
"LogServices": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices"
|
||||
},
|
||||
"GraphicsControllers": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/GraphicsControllers"
|
||||
},
|
||||
"USBControllers": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/USBControllers"
|
||||
},
|
||||
"Certificates": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Certificates"
|
||||
},
|
||||
"VirtualMedia": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/VirtualMedia"
|
||||
},
|
||||
"Links": {
|
||||
"Chassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
],
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/BMC"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Actions": {
|
||||
"#ComputerSystem.Reset": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/Actions/ComputerSystem.Reset",
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff",
|
||||
"GracefulShutdown",
|
||||
"GracefulRestart",
|
||||
"ForceRestart",
|
||||
"Nmi",
|
||||
"ForceOn",
|
||||
"PushPowerButton",
|
||||
"FullPowerCycle"
|
||||
]
|
||||
},
|
||||
"#ComputerSystem.GraphicalConsoleGetOneTimeURL": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/Actions/ComputerSystem.GraphicalConsoleGetOneTimeURL"
|
||||
},
|
||||
"#ComputerSystem.GraphicalConsoleSetOneTimePassword": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/Actions/ComputerSystem.GraphicalConsoleSetOneTimePassword"
|
||||
},
|
||||
"#ComputerSystem.GraphicalConsoleSetPassword": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/Actions/ComputerSystem.GraphicalConsoleSetPassword"
|
||||
},
|
||||
"Oem": {
|
||||
"#Contoso.Reset": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/Oem/Contoso/Actions/Contoso.Reset"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2",
|
||||
"@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