diff options
author | mbeierl <mark.beierl@dell.com> | 2017-01-27 16:35:37 -0500 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-01-27 16:35:37 -0500 |
commit | d6a4c32eeb15b24aa3079bb404ac79cffeacf6ff (patch) | |
tree | 6107e7c08b94c0e59545c1ec7550665fa891d466 /storperf/db/test_results_db.py | |
parent | cc5f999694cb4052d044261b18ec8fedf3de866e (diff) |
Testresults DB Alignment
Changes the key names sent to the testresults db to align with other
projects.
Defines a clear PASS/FAIL based on the ability to find steady state for
all runs. If one run failed to achieve steady state, run gets labelled
as FAIL.
Change-Id: I73143779453689eea93829079388ed8035134aa3
JIRA: STORPERF-100
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'storperf/db/test_results_db.py')
-rw-r--r-- | storperf/db/test_results_db.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/storperf/db/test_results_db.py b/storperf/db/test_results_db.py index 75cb05d..bb328db 100644 --- a/storperf/db/test_results_db.py +++ b/storperf/db/test_results_db.py @@ -9,7 +9,6 @@ import json import os - import requests @@ -29,17 +28,18 @@ def get_installer_type(logger=None): def push_results_to_db(db_url, project, case_name, test_start, test_stop, logger, pod_name, - version, scenario, criteria, build_tag, payload): + version, scenario, criteria, build_tag, details): """ POST results to the Result target DB """ url = db_url + "/results" installer = get_installer_type(logger) + params = {"project_name": project, "case_name": case_name, - "start_date": test_start, "stop_date": test_stop, "pod_name": pod_name, "installer": installer, "version": version, "scenario": scenario, "criteria": criteria, - "build_tag": build_tag, "details": payload} + "build_tag": build_tag, "start_date": test_start, + "stop_date": test_stop, "details": details} headers = {'Content-Type': 'application/json'} try: @@ -56,5 +56,5 @@ def push_results_to_db(db_url, project, case_name, logger.error("Error [push_results_to_db('%s', '%s', '%s', " + "'%s', '%s', '%s', '%s', '%s', '%s')]:" % (db_url, project, case_name, pod_name, version, - scenario, criteria, build_tag, payload[:512]), e) + scenario, criteria, build_tag, details[:512]), e) return False |