valence/simulator/pod_manager
akhiljain23 cf99ff0165 Updating docs
>> 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
2018-04-24 19:18:35 +05:30
..
rsd_v1_2_1 Updating docs 2018-04-24 19:18:35 +05:30
__init__.py implement simulator for valence 2017-03-01 15:54:46 +08:00
README.md Some typing error in README document 2017-05-05 14:53:33 +05:30
requirements.txt implement simulator for valence 2017-03-01 15:54:46 +08:00

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

How to Use