use the git link to replace qtip_spec 03/35203/2
authorzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 23 May 2017 10:06:58 +0000 (18:06 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 23 May 2017 10:50:35 +0000 (18:50 +0800)
Change-Id: Iaee076c06d54754f2d761dd85eab58353ee32ae4
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
qtip/ansible_library/plugins/action/calculate.py
tests/unit/ansible_library/plugins/action/calculate_test.py

index d50222f..077d863 100644 (file)
@@ -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"
         }
     }
 
index 31d7212..fae5982 100644 (file)
@@ -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}}