diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2017-05-24 09:14:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-24 09:14:19 +0000 |
commit | d00f3cf55f53253b1c1654f54c76d7b8281b7860 (patch) | |
tree | 8dc10c0da78047a3d8c4425ee025ffa2f722ac33 | |
parent | c648f91de1130bf8f09d6d97155d6a6b8f38e728 (diff) | |
parent | 9ee460df3e2280876b7dd826e8b71ab04514cc17 (diff) |
Merge "use the git link to replace qtip_spec"
-rw-r--r-- | qtip/ansible_library/plugins/action/calculate.py | 2 | ||||
-rw-r--r-- | tests/unit/ansible_library/plugins/action/calculate_test.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/qtip/ansible_library/plugins/action/calculate.py b/qtip/ansible_library/plugins/action/calculate.py index d50222fe..077d863c 100644 --- a/qtip/ansible_library/plugins/action/calculate.py +++ b/qtip/ansible_library/plugins/action/calculate.py @@ -69,7 +69,7 @@ def calc_qpi(qpi_spec, metrics): 'children': section_results, 'details': { 'metrics': metrics, - 'spec': qpi_spec + 'spec': "https://git.opnfv.org/qtip/tree/resources/QPI/compute.yaml" } } diff --git a/tests/unit/ansible_library/plugins/action/calculate_test.py b/tests/unit/ansible_library/plugins/action/calculate_test.py index 31d72120..fae59821 100644 --- a/tests/unit/ansible_library/plugins/action/calculate_test.py +++ b/tests/unit/ansible_library/plugins/action/calculate_test.py @@ -69,13 +69,13 @@ def section_result(metric_result): @pytest.fixture() -def qpi_result(qpi_spec, section_result, metrics): +def qpi_result(section_result, metrics): return {'score': 2048, 'name': 'compute', 'description': 'QTIP Performance Index of compute', 'children': [section_result], 'details': { - 'spec': qpi_spec, + 'spec': "https://git.opnfv.org/qtip/tree/resources/QPI/compute.yaml", 'metrics': metrics}} |