Adapter "installer_type" for reporting 09/52609/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Mon, 26 Feb 2018 02:27:29 +0000 (10:27 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Mon, 26 Feb 2018 02:46:22 +0000 (10:46 +0800)
mcp is regarded as fuel in opnfv testresult reporting, but they are
different tools for QTIP. so convert "mcp" to "fuel" before reporting.

Change-Id: I5a90828b4583fe734beb80283734966d9ece1852
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
resources/ansible_roles/opnfv-testapi/tasks/report.yml
resources/ansible_roles/qtip-generator/files/compute/host_vars/localhost.yml

index 0633eaf..6db3a78 100644 (file)
@@ -21,7 +21,7 @@
       project_name: "{{ project_name }}"
       case_name: "{{ case_name }}"
       pod_name: "{{ pod_name }}"
-      installer: "{{ installer_type }}"
+      installer: "{{ installer_type_adapter[installer_type] }}"
       version: "{{ version }}"
       scenario: "{{ scenario }}"
       start_date: "{{ ansible_date_time.date }}"
index cc587c6..7f33904 100644 (file)
@@ -14,3 +14,9 @@ case_name: "{{ case_name|default('compute') }}"
 pod_name: "{{ pod_name|default('qtip-pod') }}"
 scenario: "{{ scenario|default('generic') }}"
 version: "{{ lookup('env','OPNFV_RELEASE')|default('master') }}"
+
+installer_type_adapter:
+  fuel: fuel
+  mcp: fuel
+  apex: apex
+  manual: manual
\ No newline at end of file