Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bmc/mock/server/data/TaskService/Tasks/lenovo-repo/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"@odata.type": "#Task.v1_7_3.Task",
"@odata.id": "/redfish/v1/TaskService/Tasks/lenovo-repo",
"Id": "lenovo-repo",
"Name": "Firmware update from repository",
"TaskState": "New",
"TaskStatus": "OK",
"PercentComplete": 0,
"Messages": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{"TaskState": "Running", "TaskStatus": "OK", "PercentComplete": 0},
{
"TaskState": "Exception",
"TaskStatus": "Warning",
"PercentComplete": 0,
"Messages": [
{
"MessageId": "LenovoFirmwareUpdate.1.0.0.SyncRepoSubstateFailed",
"Message": "Failed to sync the repository.",
"Severity": "Warning"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{"TaskState": "Running", "TaskStatus": "OK", "PercentComplete": 0},
{"TaskState": "Running", "TaskStatus": "OK", "PercentComplete": 30},
{"TaskState": "Running", "TaskStatus": "OK", "PercentComplete": 70},
{"TaskState": "Completed", "TaskStatus": "OK", "PercentComplete": 100}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@odata.type": "#SoftwareInventory.v1_10_1.SoftwareInventory",
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/HPM-FPGA-Pending",
"Id": "HPM-FPGA-Pending",
"Name": "HPM FPGA Firmware (Pending)",
"Status": {
"State": "Disabled",
"Health": "OK"
},
"Updateable": true,
"Manufacturer": "Lenovo",
"Version": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@odata.type": "#SoftwareInventory.v1_10_1.SoftwareInventory",
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/HPM-FPGA",
"Id": "HPM-FPGA",
"Name": "HPM FPGA Firmware",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Updateable": true,
"Manufacturer": "Lenovo",
"Version": "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@odata.type": "#SoftwareInventory.v1_12_0.SoftwareInventory",
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/PCIeDevice_slot14_0xb40000.Bundle",
"Id": "PCIeDevice_slot14_0xb40000.Bundle",
"Name": "Firmware:DEVICE-Broadcom 57508 100GbE QSFP56 2-Port OCP Ethernet Adapter",
"Manufacturer": "Broadcom Limited",
"SoftwareId": "DEVICE-14E4-1750-17AA-4103-13",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Updateable": true,
"Version": "232.1.132.8"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@odata.type": "#SoftwareInventory.v1_10_1.SoftwareInventory",
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/UEFI-Pending",
"Id": "UEFI-Pending",
"Name": "UEFI Firmware (Pending)",
"Status": {
"State": "StandbyOffline",
"Health": "OK"
},
"Updateable": true,
"Manufacturer": "Lenovo",
"Version": "UEFI-staged"
}
8 changes: 8 additions & 0 deletions bmc/mock/server/data/UpdateService/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
"#UpdateService.SimpleUpdate": {
"target": "/redfish/v1/UpdateService/Actions/SimpleUpdate",
"@Redfish.ActionInfo": "/redfish/v1/UpdateService/SimpleUpdateActionInfo"
},
"Oem": {
"#LenovoUpdateService.UpdateFromRepository": {
"target": "/redfish/v1/UpdateService/Actions/Oem/LenovoUpdateService.UpdateFromRepository"
},
"#LenovoUpdateService.GetRepoUpdateDetail": {
"target": "/redfish/v1/UpdateService/Actions/Oem/LenovoUpdateService.GetRepoUpdateDetail"
}
}
},
"@odata.id": "/redfish/v1/UpdateService",
Expand Down
Loading
Loading