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
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"@odata.type": "#LogEntryCollection.LogEntryCollection",
|
||||
"Name": "Log Service Collection",
|
||||
"Description": "Collection of Logs for this System",
|
||||
"Members@odata.count": 2,
|
||||
"Members": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1/Entries/1",
|
||||
"@odata.type": "#LogEntry.v1_22_0.LogEntry",
|
||||
"Id": "1",
|
||||
"Name": "Log Entry 1",
|
||||
"EntryType": "SEL",
|
||||
"Severity": "Critical",
|
||||
"Created": "2012-03-07T14:44:00Z",
|
||||
"EntryCode": "Upper Critical - going high",
|
||||
"SensorType": "Temperature",
|
||||
"SensorNumber": 1,
|
||||
"Message": "Temperature threshold exceeded",
|
||||
"MessageId": "0x592A28",
|
||||
"Links": {
|
||||
"OriginOfCondition": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1/Entries/2",
|
||||
"@odata.type": "#LogEntry.v1_22_0.LogEntry",
|
||||
"Id": "2",
|
||||
"Name": "Log Entry 2",
|
||||
"EntryType": "SEL",
|
||||
"Severity": "Critical",
|
||||
"Created": "2012-03-07T14:45:00Z",
|
||||
"EntryCode": "Upper Critical - going high",
|
||||
"SensorType": "Temperature",
|
||||
"SensorNumber": 2,
|
||||
"Message": "Temperature threshold exceeded",
|
||||
"MessageId": "0x592E28",
|
||||
"Links": {
|
||||
"OriginOfCondition": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"@odata.nextLink": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1/Entries?$skiptoken=2",
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1/Entries",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"@odata.type": "#LogService.v1_9_0.LogService",
|
||||
"Id": "Log1",
|
||||
"Name": "System Log Service",
|
||||
"MaxNumberOfRecords": 1000,
|
||||
"OverWritePolicy": "WrapsWhenFull",
|
||||
"DateTime": "2015-03-13T04:14:33+06:00",
|
||||
"DateTimeLocalOffset": "+06:00",
|
||||
"ServiceEnabled": true,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"Actions": {
|
||||
"#LogService.ClearLog": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1/Actions/LogService.ClearLog"
|
||||
}
|
||||
},
|
||||
"Entries": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1/Entries"
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices/Log1",
|
||||
"@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