summaryrefslogtreecommitdiffstats
path: root/tests/integration
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-17 11:20:54 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-17 23:04:29 +0800
commit5cf6a66f85658b20e80cd69f93aca470d4511b3c (patch)
tree690f9cb8ae5b2126034585b2afeda34c88136072 /tests/integration
parentf52fba6b8c062337708bfd429fbb845487f3d4c9 (diff)
push results to testapi
Change-Id: Ie6e231690f92971b776cd41af18b21acb43bb199 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/run.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/integration/run.yaml b/tests/integration/run.yaml
index eb1bab88..7545a65e 100644
--- a/tests/integration/run.yaml
+++ b/tests/integration/run.yaml
@@ -57,3 +57,24 @@
src: "{{ qtip_resources }}/template/qpi-report.j2"
dest: "{{ qtip_reports }}/qpi-report"
tags: [report]
+ - name: push result to testapi
+ uri:
+ url: "{{ testapi_url }}/results"
+ body: "{{ item|to_json }}"
+ method: POST
+ body_format: json
+ status_code: 200
+ with_items:
+ -
+ project_name: "{{ project_name }}"
+ case_name: "{{ case_name }}"
+ pod_name: "{{ pod_name }}"
+ installer: "{{ installer }}"
+ version: "{{ version }}"
+ scenario: "{{ scenario }}"
+ start_date: "{{ ansible_date_time.date }}"
+ stop_date: "{{ ansible_date_time.date }}"
+ criteria: ""
+ details: " {{ pod_result }}"
+
+ tags: [testapi]