This repository contains selection of Redfish recordings that can be served by the Redfish mock servers.
In order to make playing with those recordings as painless as possible,
repository already contains a Gemfile that can be used to install
Redfish tools gem that contain mock server. Running
$ bundle
Fetching gem metadata from https://rubygems.org/...
Resolving dependencies...
Using bundler 1.16.1
...
will install Redfish tools gem with dependecies and provide redfish serve
command. To start serving one of the recordings (lenovo-sr650 in this
example), we must run
$ bundle exec redfish serve lenovo-sr650
[2018-05-30 16:37:01] INFO WEBrick 1.3.1
[2018-05-30 16:37:01] INFO ruby 2.4.3 (2017-12-14) [x86_64-linux]
[2018-05-30 16:37:01] INFO RedfishTools::Server#start: pid=30028 port=8000
If we now visit localhost:8000/redfish/v1, a healthy amount of JSON data
will fill our browser.
To terminate the server, just press CTRL+c.
And this is basically all there is to it.
The Dockerfile is used to build a ready-to-use image. It contains all
available recordings. You just need to choose one and then launch it.
If you don't want to build yourself image, you could directly pull
shihta/redfish-recordings.
0.0.0.08000adminpassadminTRUE for HTTPS, otherwise it will provide HTTP service.
Default is TRUElenovo-sr650It's easy to integrate with your local recording. You just need to put your
recording folder on /app and then change RECORDING to the folder name.
e.g.
docker run -v $PWD/newtype:/app/newtype -e RECORDING=newtype shihta/redfish-recordings
Content type
Image
Digest
Size
38.1 MB
Last updated
about 7 years ago
docker pull shihta/redfish-recordings