cf99ff0165
>> Changed project name from plasma to valence in docs. >> Fixed docstring indentation. >> Added features docs. >> Added driver docs. >> Hidden licence headers from html files. Depends-On: Ia02bc00ad168b3c3d01ef6ca9696d43996091070 Change-Id: I1fa382d566165f5e76c84ad864024c0f546ef74c |
||
---|---|---|
.. | ||
rsd_v1_2_1 | ||
__init__.py | ||
README.md | ||
requirements.txt |
PodManager Mocked Up Environment
Introduction
As we know, PodManager now has two announced API spec versions 1.2.1 and 2.1, so we mocked up both of them to match valence's whole requirement.
Please note that the mocked up environment is just for testing and development. The two mocked up PodManager environment are using same Flask framework with same layout logic. Both versions can be easily understood by understanding one of them.
And our final result for this simulator would generate a PodManager which looks like this : http://imgur.com/a/FP4c9
How to Deploy
Install dependencies
pip install -r pod_manager/requirements.txt
Test run
First run the Flask webservice
cd valence/simulator
python pod_manager/rsd_v1_2_1/run.py
Then test the api by following python codes' running result
import requests
auth=(name='admin',password='Passw0rd')
requests.get('https://localhost/redfish/v1', auth=auth)
Also , we could access the url in browser to get the api result, like: https://localhost/redfish/v1