DMTF / Redfish-Mockup-Server

A simple Python 3.4 program that can be copied into a folder at the top of any Redfish mockup and can serve Redfish requests on the specified IP/port.
Other
83 stars 37 forks source link

Mock simple actions #69

Closed mcalmer closed 3 years ago

mcalmer commented 3 years ago

Mock Power Management Actions PowerOn, PowerOff and Reboot

mraineri commented 3 years ago

@mcalmer the group is wondering if this type of functionality is starting to cross the line into what we think belongs in he Redfish Interface Emulator (https://github.com/DMTF/Redfish-Interface-Emulator). Usually we try to limit the operations on the mockup server to GETs (and some support for POST just to make generic clients pass certain checks).

jcleung5549 commented 3 years ago

In the Redfish Interface Emulator repository, look in ./api_emulator/redfish/ComputerSystem, you will find the files

The first file purpose is to emulate the POST to ResetAction. Currently, it is a stuff and your code could replace that stub.

mcalmer commented 3 years ago

Thanks for the pointer. I was not aware that there is a second emulator. I will have a look what we can do with it.

mraineri commented 3 years ago

Closing; if the Redfish Interface Emulator is not sufficient and this needs to be part of the Redfish Mockup Server, please let us know and we can revisit this topic.