Closed commonism closed 5 months ago
The objects linked do not exist.
"Links": {
"Chassis": [
{
"@odata.id": "/redfish/v1/Chassis/1"
}
],
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/1"
}
],
Thanks - the /redfish/v1/Systems were left as a remnant from the RF emulator, and not cleaned up properly in the setup script. This is a function of the underlying mockups, not the emulator itself. If you have mockups for a different configuration, you can drop them in to the "Resources" directory and see a different configuration.
There are pre-built versions of this available in containers for storage configurations on dockerhub: https://hub.docker.com/u/snia
I've put a PR in to fix the setup script (#132)
You've missed it in the docker file.
Hi,
I'm with https://github.com/commonism/aiopenapi3_redfish and I tried using https://github.com/DMTF/Redfish-Interface-Emulator for unit testing and ended up with Swordfish-API-Emulator.
I have found multiple issues with the data returned by the emulator, I'll show how to reproduce and how I mangle the data using aiopenapi3 plugins.
/redfish/v1/ - Systems missing in ServiceRoot
/redfish/v1/Systems - malformed data
not a Collection
the data returned is supposed to be a Collection, there is a collection but it's embedded in Links
System 2 does not exist
Accessing will error
fix
/redfish/v1/Systems/1 returns malformed data
There is multiple issues here …
using Processors instead of ProcessorsSummary
fix
using Memory instead of MemorySummary
fix
case HealthRollup
fix
missing i in GiB
fix
BootSourceOverrideSupported does not exist
fix
Power does not exist
fix
Action DMTF.AllowableValues is invalid
fix
Action target is outside of /redfish/v1
not sure if this is valid, in my case this caused problems (besides calling the target does not work).
I had to add the target to the openapi.yaml description document, aliasing the PathItem for "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset" to teach my client the argument & return values
Links has invalid properties SimpleNetwork & SimpleStorage
fix
/rest/v1/Systems/1/Actions/ComputerSystem.Reset - 404
I tried /redfish as well
Due to the content type, data & status code, no fix here.
Error message invalid format
fix