Add energy base scenario and test files 60/69260/3
authorsungn <sungn2@lenovo.com>
Fri, 6 Dec 2019 08:36:52 +0000 (16:36 +0800)
committersungn <sungn2@lenovo.com>
Tue, 10 Dec 2019 10:08:12 +0000 (18:08 +0800)
commit681292f871f31dffaef84f811dfdfd89df23a638
tree67cb81e7bc4ff44b673c96daf694e42ecadbc345
parentfa7302c8d77f2400ac11874354de68ea632717ed
Add energy base scenario and test files

Folder of energy contains scripts of energy measurement.
File __init__.py make it a module that can be imported.
File energy.py contains the main function of energy measurement
through redfish API.
File test_energy.py test function of energy.py
File energy_sample_chassis_output.txt provide a sample output of
chassis query.
File energy_sample_power_metrics.txt provide sample metrics of
power query.
This will allow users to collect data of energy consumption of
baremetal machines.

JIRA: YARDSTICK-1624
Co-authored by: Roland Picard <roland.picard@orange.com>

Signed-off-by: sungn <sungn2@lenovo.com>
Change-Id: Ied86894f3dcc2536f0cb1a044f4591351e5b3270
yardstick/benchmark/scenarios/energy/__init__.py [new file with mode: 0644]
yardstick/benchmark/scenarios/energy/energy.py [new file with mode: 0644]
yardstick/tests/unit/benchmark/scenarios/energy/__init__.py [new file with mode: 0644]
yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_chassis_output.txt [new file with mode: 0644]
yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_power_metrics.txt [new file with mode: 0644]
yardstick/tests/unit/benchmark/scenarios/energy/test_energy.py [new file with mode: 0644]