From 681292f871f31dffaef84f811dfdfd89df23a638 Mon Sep 17 00:00:00 2001 From: sungn Date: Fri, 6 Dec 2019 16:36:52 +0800 Subject: 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 Signed-off-by: sungn Change-Id: Ied86894f3dcc2536f0cb1a044f4591351e5b3270 --- .../scenarios/energy/energy_sample_chassis_output.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_chassis_output.txt (limited to 'yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_chassis_output.txt') diff --git a/yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_chassis_output.txt b/yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_chassis_output.txt new file mode 100644 index 000000000..9b3afd1fb --- /dev/null +++ b/yardstick/tests/unit/benchmark/scenarios/energy/energy_sample_chassis_output.txt @@ -0,0 +1,14 @@ +{ + "@odata.id": "/redfish/v1/Chassis", + "Name": "ChassisCollection", + "@odata.context": "/redfish/v1/$metadata#ChassisCollection.ChassisCollection", + "Members": [ + { + "@odata.id": "/redfish/v1/Chassis/1" + } + ], + "@odata.type": "#ChassisCollection.ChassisCollection", + "@odata.etag": "\"af5a94479815eb5f87fe91ea08fde0ac\"", + "Members@odata.count": 1, + "Description": "A collection of Chassis resource instances." +} -- cgit 1.2.3-korg