summaryrefslogtreecommitdiff
path: root/test/redfish-core
diff options
context:
space:
mode:
authorGeorge Liu <liuxiwei@inspur.com>2020-05-12 11:06:27 +0300
committerGeorge Liu <liuxiwei@inspur.com>2023-03-24 09:41:34 +0300
commit0ed80c8ce93a38eca6951ffad5c3143a3a720053 (patch)
tree4cb6dbaf356058c80979319780dc861d81b2363e /test/redfish-core
parent6c3e94511027133db407f9e1c3c628927ec1332f (diff)
downloadbmcweb-0ed80c8ce93a38eca6951ffad5c3143a3a720053.tar.xz
UpdateService: Support for MultipartHttpPushUri
Since a service support the MultipartHttpPushUri property within the UpdateService resource, so add a new MultipartHttpPushUri property, This property shall contain a URI used to perform a Redfish Specification-defined Multipart HTTP or HTTPS POST of a software image for the purpose of installing software contained within the image, and use the requirements of a multipart/form-data to request body for HTTP push software update. Tested: curl -k -H "X-Auth-Token: $token" -H "Content-Type: multipart/form-data" -F 'UpdateParameters={"Targets":["/redfish/v1/Managers/bmc"], "@Redfish.OperationApplyTime":"Immediate"};type=application/json' -F 'UpdateFile=@obmc-phosphor-image.static.mtd.tar;type=application/ octet-stream' https://${bmc}/redfish/v1/UpdateService/update { "@odata.id": "/redfish/v1/TaskService/Tasks/0", "@odata.type": "#Task.v1_4_3.Task", "Id": "0", "TaskState": "Running", "TaskStatus": "OK" } Passed the validator: Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ie1ea0594337efdb073270aba6918389c4381a2b3
Diffstat (limited to 'test/redfish-core')
0 files changed, 0 insertions, 0 deletions