diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-25 13:49:21 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-25 16:58:26 +0800 |
commit | 6463b6635a8094a0ddcf83605cd231ba46104f72 (patch) | |
tree | 4ec7c0381f4447f5462fb2cac556a473b4b3c36e /tests/unit/ansible_library | |
parent | ec63540ec6cd3e6310407826b99cf0b3327bdf02 (diff) |
Add ssl aes metrics in qpi calculation
Change-Id: Id568aa3942849e105ca24892babff2acaec21121
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/unit/ansible_library')
-rw-r--r-- | tests/unit/ansible_library/plugins/action/calculate_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/ansible_library/plugins/action/calculate_test.py b/tests/unit/ansible_library/plugins/action/calculate_test.py index 3b34d9f5..68a03e2a 100644 --- a/tests/unit/ansible_library/plugins/action/calculate_test.py +++ b/tests/unit/ansible_library/plugins/action/calculate_test.py @@ -83,3 +83,10 @@ def test_calc_section(section_spec, metrics, section_result): def test_calc_qpi(qpi_spec, metrics, qpi_result): assert calculate.calc_qpi(qpi_spec, metrics) == qpi_result + + +@pytest.mark.parametrize('metrics, baseline, expected', [ + (['612376.96k'], '612376.96k', 1) +]) +def test_calc_score(metrics, baseline, expected): + assert calculate.calc_score(metrics, baseline) == expected |